This is the update I have made based on suggestions for the previous patches to add a udev_run interface. This adds the new domain udevadm_t which is entered from /usr/bin/udevadm. It seems to meet the needs that I have, but there are some things to note that are probably important. 1) There are a few systemd services that use udevadm during startup. I have granted the permisssions that I need based on denials I was seeing during startup (the machine would fail to start without the permisions). 2) In the udev.fc file there are other binaries that I don't have on a RHEL7 box that maybe should also be labeled udevadm_exec_t. e.g. /usr/bin/udevinfo and /usr/bin/udevsend But as I don't have those binaries to test, I have not updated the type of that binary. 3) There are some places that call udev_domtrans that maybe should now be using udevadm_domtrans - rpm.te, hal.te, hotplug.te. Again, these are not things that I am using in my current situation and am unable to test the interactions to know if the change is correct. Other than that, I think this was a good suggestion to split udevadm into a different domain. Only change for v4 is to use stream_connect_pattern as suggested. Signed-off-by: Dave Sugar <dsugar@tresys.com>
46 lines
2.0 KiB
Plaintext
46 lines
2.0 KiB
Plaintext
/dev/\.udev(/.*)? -- gen_context(system_u:object_r:udev_tbl_t,s0)
|
|
/dev/\.udevdb -- gen_context(system_u:object_r:udev_tbl_t,s0)
|
|
/dev/udev\.tbl -- gen_context(system_u:object_r:udev_tbl_t,s0)
|
|
|
|
/etc/dev\.d/.+ -- gen_context(system_u:object_r:udev_helper_exec_t,s0)
|
|
|
|
/etc/hotplug\.d/default/udev.* -- gen_context(system_u:object_r:udev_helper_exec_t,s0)
|
|
|
|
/etc/udev/rules.d(/.*)? gen_context(system_u:object_r:udev_rules_t,s0)
|
|
/etc/udev/scripts/.+ -- gen_context(system_u:object_r:udev_helper_exec_t,s0)
|
|
|
|
/usr/bin/udev -- gen_context(system_u:object_r:udev_exec_t,s0)
|
|
/usr/bin/udevadm -- gen_context(system_u:object_r:udevadm_exec_t,s0)
|
|
/usr/bin/udevd -- gen_context(system_u:object_r:udev_exec_t,s0)
|
|
/usr/bin/udevinfo -- gen_context(system_u:object_r:udev_exec_t,s0)
|
|
/usr/bin/udevsend -- gen_context(system_u:object_r:udev_exec_t,s0)
|
|
/usr/bin/udevstart -- gen_context(system_u:object_r:udev_exec_t,s0)
|
|
/usr/bin/wait_for_sysfs -- gen_context(system_u:object_r:udev_exec_t,s0)
|
|
|
|
ifdef(`distro_debian',`
|
|
/usr/lib/udev/create_static_nodes -- gen_context(system_u:object_r:udev_exec_t,s0)
|
|
')
|
|
|
|
/usr/sbin/udev -- gen_context(system_u:object_r:udev_exec_t,s0)
|
|
/usr/sbin/udevadm -- gen_context(system_u:object_r:udevadm_exec_t,s0)
|
|
/usr/sbin/udevd -- gen_context(system_u:object_r:udev_exec_t,s0)
|
|
/usr/sbin/udevsend -- gen_context(system_u:object_r:udev_exec_t,s0)
|
|
/usr/sbin/udevstart -- gen_context(system_u:object_r:udev_exec_t,s0)
|
|
/usr/sbin/wait_for_sysfs -- gen_context(system_u:object_r:udev_exec_t,s0)
|
|
|
|
ifdef(`distro_redhat',`
|
|
/usr/sbin/start_udev -- gen_context(system_u:object_r:udev_exec_t,s0)
|
|
')
|
|
|
|
/usr/lib/systemd/systemd-udevd -- gen_context(system_u:object_r:udev_exec_t,s0)
|
|
/usr/lib/udev/udev-acl -- gen_context(system_u:object_r:udev_exec_t,s0)
|
|
|
|
/usr/share/virtualbox/VBoxCreateUSBNode\.sh -- gen_context(system_u:object_r:udev_helper_exec_t,s0)
|
|
|
|
/run/udev(/.*)? gen_context(system_u:object_r:udev_var_run_t,s0)
|
|
|
|
ifdef(`distro_debian',`
|
|
/run/console-setup(/.*)? gen_context(system_u:object_r:udev_var_run_t,s0)
|
|
/run/xen-hotplug -d gen_context(system_u:object_r:udev_var_run_t,s0)
|
|
')
|