Skip to contentSkip to conversation

MLS policy patch

PATCH Russell Coker 1 participant 1 message Oct 13, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

The attached patch fixes a couple of minor bugs in Dan's MLS policy package.

Also ethereal.te needs to be moved to the unused directory to reduce the references to undefined types in the file_contexts.

Signature · 4 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page
domains/program/mount.te +0 -1
diff -ru policy.bak/domains/program/mount.te policy/domains/program/mount.te
@@ -87,5 +87,4 @@
 
 allow kernel_t mount_t:tcp_socket { read write };
 allow mount_t self:capability { setgid setuid };
-allow user_t mount_t:tcp_socket write;
 allow mount_t proc_t:lnk_file read;
domains/program/unused/dcc.te +2 -3
diff -ru policy.bak/domains/program/unused/dcc.te policy/domains/program/unused/dcc.te
@@ -200,9 +200,8 @@
 can_exec_any(dcc_script_t)
 dcc_common(dcc_script)
 
-# Allow calling the script from an init script (initrt_t) or from
-# rc.local (staff_t)
-domain_auto_trans({ initrc_t staff_t }, dcc_script_exec_t, dcc_script_t)
+# Allow calling the script from an init script (initrt_t)
+domain_auto_trans(initrc_t, dcc_script_exec_t, dcc_script_t)
 
 # Start up the daemon process.  These scripts run 'su' to change to
 # the dcc user (even though the default dcc user is root).
macros/user_macros.te +0 -1
diff -ru policy.bak/macros/user_macros.te policy/macros/user_macros.te
@@ -226,7 +226,6 @@
 
 allow $1_t self:dir search;
 allow $1_t self:file { getattr read };
-allow secadm_t self:fifo_file rw_file_perms;
 
 allow $1_t self:lnk_file read;
 allow $1_t self:unix_stream_socket create_socket_perms;