policy change needed for screen
The attached policy patch allows init scripts to remove directories whos type has the pidfile attribute. This permits the screen directories to be removed and will also allow init scripts to clean up other directories created by daemons.
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
program/initrc.te renamed from program/initrc.te.orig +1 -1
@@ -230,7 +230,7 @@ allow initrc_t home_type:file r_file_perms; # for system start scripts -allow initrc_t pidfile:dir rw_dir_perms; +allow initrc_t pidfile:dir { rmdir rw_dir_perms }; allow initrc_t pidfile:sock_file unlink; rw_dir_create_file(initrc_t, var_lib_t)
Quoted 4 lines · Russell Coker
The attached policy patch allows init scripts to remove directories whos type has the pidfile attribute. This permits the screen directories to be removed and will also allow init scripts to clean up other directories created by daemons.
Attached is an updated patch. The change is necessary to allow init scripts to create /var/log/dmesg when the machine is in the most strict configuration.
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
program/initrc.te renamed from program/initrc.te.orig +2 -2
@@ -131,7 +131,7 @@ # Update /var/log/wtmp and /var/log/dmesg. allow initrc_t wtmp_t:file { setattr rw_file_perms }; allow initrc_t var_log_t:dir rw_dir_perms; -allow initrc_t var_log_t:file { setattr rw_file_perms }; +allow initrc_t var_log_t:file create_file_perms; allow initrc_t lastlog_t:file { setattr rw_file_perms }; allow initrc_t logfile:file { read append };
@@ -230,7 +230,7 @@ allow initrc_t home_type:file r_file_perms; # for system start scripts -allow initrc_t pidfile:dir rw_dir_perms; +allow initrc_t pidfile:dir { rmdir rw_dir_perms }; allow initrc_t pidfile:sock_file unlink; rw_dir_create_file(initrc_t, var_lib_t)