su policy
su needs audit_control capability for correct operation (otherwise it gives error messages on the terminal).
ifdef(chkpwd.te', domain_auto_trans($1_su_t, chkpwd_exec_t, $2_chkpwd_t) allow $1_su_t self:netlink_audit_socket create_netlink_socket_perms; ')
Also in the above policy I believe that having the netlink_audit_socket access inside ifdef(`chkpwd.te' is incorrect. Surely if we were to modify the policy to make it usable without chkpwd.te then su would have more need of audit access not less.
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
su_macros.te renamed from su_macros.te.orig +1 -1
@@ -61,7 +61,7 @@ ') # Use capabilities. -allow $1_su_t self:capability { setuid setgid net_bind_service chown dac_override fowner sys_nice sys_resource }; +allow $1_su_t self:capability { setuid setgid net_bind_service chown dac_override fowner sys_nice sys_resource audit_control }; dontaudit $1_su_t self:capability sys_tty_config; # # Caused by su - init scripts