Giter Site home page Giter Site logo

Comments (9)

egtvedt avatar egtvedt commented on May 18, 2024

I am stuck with the same issue, currently considering a workaround by reverting systemd commit systemd/systemd@63e2d17

I do not feel switching udevadm to udev_exec_t is the correct approach.

from refpolicy.

 avatar commented on May 18, 2024

from refpolicy.

 avatar commented on May 18, 2024

from refpolicy.

pebenito avatar pebenito commented on May 18, 2024

To me, it seems that we should change udevadm to udev_exec_t and then change the old udevadm transitions to be over udev_exec_t assuming there isn't a type transition conflict.

from refpolicy.

egtvedt avatar egtvedt commented on May 18, 2024

Hans-Christian Egtvedt [email protected] writes:
I am stuck with the same issue, currently considering a workaround by reverting systemd commit @.*** I do not feel switching udevadm to udev_exec_t is the correct approach.
Why do you think that? You might have to move some rules over and add in/remove some compatibility rules, but essentially it should be the same code. That is why they decided to merge it. it was just duplicate code occupying space. You can add a typealias for compatibility. This is (at least some of it) what i did in my personal policy to address this consolidation: https://git.defensec.nl/?p=dssp3.git;a=commitdiff;h=848385ed4a145ac2967ab9a7f1d0715ebe741fd1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
-- gpg --locate-keys [email protected] Key fingerprint = FCD2 3660 5D6B 9D27 7FC6 E0FF DA7E 521F 10F6 4098 https://sks-keyservers.net/pks/lookup?op=get&search=0xDA7E521F10F64098 Dominick Grift

Ack, I was mostly concerned about two quite different programs now being merged into one type, but I guess they will have the same needs with regards to access for things to work.

from refpolicy.

egtvedt avatar egtvedt commented on May 18, 2024

I tuned my local policy file context to do
/usr/bin/udevadm -- gen_context(system_u:object_r:udev_exec_t)

And I also had to add the following policy
allow udev_t var_run_t:file { getattr open read };

And AFAICT things work as they should again, I see no violations and run in enforcing mode.

The need for udev_t to access var_run_t:file types are due to my embedded target being a bit exotic, I think that can be ignored.

from refpolicy.

minimaxwell avatar minimaxwell commented on May 18, 2024

I tuned my local policy file context to do
/usr/bin/udevadm -- gen_context(system_u:object_r:udev_exec_t)

And I also had to add the following policy
allow udev_t var_run_t:file { getattr open read };

And AFAICT things work as they should again, I see no violations and run in enforcing mode.

The need for udev_t to access var_run_t:file types are due to my embedded target being a bit exotic, I think that can be ignored.

I've been testing that fix locally for a while now, and it also fixes the issue. Should we send that fix as a PR ?

Thanks,

Maxime

from refpolicy.

pebenito avatar pebenito commented on May 18, 2024

There is also a patch on the mail list that is aimed a resolving this, but it doesn't have the var_run_t rule. That sounds like a mislabeled file.

from refpolicy.

DemiMarie avatar DemiMarie commented on May 18, 2024

Another approach is to use SELinuxContext= in systemd-udevd.service.

from refpolicy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.