small policy fixes
This patch fixes some small policy issues. The most important change here is the in_user_role() macro in traceroute.te, otherwise user_ping doesn't work for traceroute.
Please apply.
Thomas
Signature · 2 lines
http://www.cip.ifi.lmu.de/~bleher/selinux/ - my SELinux pages GPG-Fingerprint: BC4F BB16 30D6 F253 E3EA D09E C562 2BAE B2F4 ABE7
macros/program/ssh_agent_macros.te +1 -1
@@ -10,7 +10,7 @@ # ssh_agent_domain(domain_prefix) # # The type declaration for the executable type for this program is -# provided separately in domains/program/ssh.te. +# provided separately in domains/program/ssh-agent.te. # define(`ssh_agent_domain',` # Define a derived domain for the ssh-agent program when executed
domains/program/tcpd.te renamed from domains/program/unused/tcpd.te +1 -1
@@ -36,7 +36,7 @@ # These rules have been moved to each target domain .te file. # Run other daemons in the inetd_child_t domain. -allow tcpd_t sbin_t:dir search; +allow tcpd_t { bin_t sbin_t }:dir search; domain_auto_trans(tcpd_t, inetd_child_exec_t, inetd_child_t) allow tcpd_t device_t:dir search;
domains/program/traceroute.te renamed from domains/program/unused/traceroute.te +3 -1
@@ -15,6 +15,8 @@ type traceroute_t, domain, privlog; role sysadm_r types traceroute_t; role system_r types traceroute_t; +# for user_ping: +in_user_role(traceroute_t) uses_shlib(traceroute_t) can_network(traceroute_t) allow traceroute_t node_t:rawip_socket node_bind;
@@ -27,7 +29,7 @@ allow traceroute_t etc_t:file { getattr read }; # Use capabilities. -allow traceroute_t traceroute_t:capability { net_admin net_raw setuid setgid }; +allow traceroute_t self:capability { net_admin net_raw setuid setgid }; allow traceroute_t self:rawip_socket create_socket_perms; allow traceroute_t self:netlink_route_socket { bind create getattr nlmsg_read read write };
domains/program/usbmodules.te renamed from domains/program/unused/usbmodules.te +1 -0
@@ -19,6 +19,7 @@ ifdef(`hotplug.te',` domain_auto_trans(hotplug_t, usbmodules_exec_t, usbmodules_t) allow usbmodules_t hotplug_etc_t:file r_file_perms; +allow usbmodules_t hotplug_etc_t:dir search; ') allow usbmodules_t init_t:fd use; allow usbmodules_t console_device_t:chr_file { read write };