inetd and login
I've attached a patch to re-write the inetd and login policy using macros.
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/inetd.te renamed from tmp/policy/domains/program/inetd.te +11 -15
@@ -1,6 +1,7 @@ #DESC Inetd - Internet services daemon # # Authors: Stephen Smalley <[email protected]> and Timothy Fraser +# re-written with daemon_domain by Russell Coker <[email protected]> # #################################
@@ -13,22 +14,17 @@ # # Rules for the inetd_t domain. # -type inetd_t, domain, privlog; -role system_r types inetd_t; -every_domain(inetd_t) -type inetd_exec_t, file_type, sysadmfile, exec_type; -domain_auto_trans(initrc_t, inetd_exec_t, inetd_t) -type_transition init_t inetd_exec_t:process inetd_t; - -type inetd_tmp_t, file_type, sysadmfile, tmpfile; -file_type_auto_trans(inetd_t, tmp_t, inetd_tmp_t) -type inetd_var_run_t, file_type, sysadmfile, pidfile; -file_type_auto_trans(inetd_t, var_run_t, inetd_var_run_t) -type var_log_inetd_t, file_type, sysadmfile; -file_type_auto_trans(inetd_t, var_log_t, var_log_inetd_t) +daemon_domain(inetd) -# Inherit and use descriptors from init. -allow inetd_t init_t:fd use; +can_network(inetd_t) +allow inetd_t self:unix_dgram_socket create_socket_perms; +allow inetd_t self:unix_stream_socket create_socket_perms; +allow inetd_t etc_t:lnk_file read; +allow inetd_t inetd_t:process setsched; +allow inetd_t resolv_conf_t:file { getattr read }; + +log_domain(inetd) +tmp_domain(inetd) # Use capabilities. allow inetd_t self:capability { setuid setgid net_bind_service };
domains/program/login.te renamed from tmp/policy/domains/program/login.te +55 -76
192 lines not on this page · raw message