Skip to contentSkip to conversation

Remove unconfined_domain from udev

PATCH Daniel J Walsh 2 participants 2 messages Mar 23, 2007 – Apr 11, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

Fixed labeling on /dev/\.udev(/.*)?
udev searches usbfs dirs
searches ptys

policy/modules/system/udev.fc +1 -1
@@ -1,6 +1,6 @@
 # udev
 
-/dev/\.udev(/.*)?	gen_context(system_u:object_r:udev_tbl_t,s0)
+/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)
 
policy/modules/system/udev.te +4 -2
@@ -89,6 +89,7 @@
 dev_manage_all_dev_nodes(udev_t)
 dev_rw_generic_files(udev_t)
 dev_delete_generic_files(udev_t)
+dev_search_usbfs_dirs(udev_t)
 
 domain_read_all_domains_state(udev_t)
 domain_dontaudit_ptrace_all_domains(udev_t) #pidof triggers these 
@@ -166,13 +167,14 @@
 
 	# for arping used for static IP addresses on PCMCIA ethernet
 	netutils_domtrans(udev_t)
+
+	term_search_ptys(udev_t)
+
 ')
 
 ifdef(`targeted_policy',`
 	term_dontaudit_use_unallocated_ttys(udev_t)
 	term_dontaudit_use_generic_ptys(udev_t)
-
-	unconfined_domain(udev_t)
 ')
 
 optional_policy(`
#1 lore raw
Quoted 3 lines · Daniel J Walsh

Fixed labeling on /dev/\.udev(/.*)?
udev searches usbfs dirs
searches ptys

Merged, with an ordering fix on the ptys rule. The usbfs one is missing an interface implementation. I also wouldn't be surprised if it ends up being a read on usbfs, not just search.

Quoted 50 lines

differences
between files
attachment
(udev.patch),
"udev.patch"

policy/modules/system/udev.fc 2007-03-22 15:06:59.000000000 -0400 renamed from policy/modules/system/udev.fc 2006-11-16 17:15:24.000000000 -0500 +1 -1
@@ -1,6 +1,6 @@
 # udev
 
-/dev/\.udev(/.*)?      gen_context(system_u:object_r:udev_tbl_t,s0)
+/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)
 
policy/modules/system/udev.te 2007-03-22 15:06:59.000000000 -0400 renamed from policy/modules/system/udev.te 2007-03-20 23:38:29.000000000 -0400 +4 -2
@@ -89,6 +89,7 @@
 dev_manage_all_dev_nodes(udev_t)
 dev_rw_generic_files(udev_t)
 dev_delete_generic_files(udev_t)
+dev_search_usbfs_dirs(udev_t)
 
 domain_read_all_domains_state(udev_t)
 domain_dontaudit_ptrace_all_domains(udev_t) #pidof triggers these 
@@ -166,13 +167,14 @@
 
        # for arping used for static IP addresses on PCMCIA ethernet
        netutils_domtrans(udev_t)
+
+       term_search_ptys(udev_t)
+
 ')
 
 ifdef(`targeted_policy',`
        term_dontaudit_use_unallocated_ttys(udev_t)
        term_dontaudit_use_generic_ptys(udev_t)
-
-       unconfined_domain(udev_t)
 ')
 
 optional_policy(`
Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.