capabilities and 2.4 vs 2.6
It seems that the meaning of sys_tty_config has changed between 2.4 and 2.6. When comparing a 2.4 kernel running the back-port of the new SE Linux code to 2.6.0-test9 I find that many applications request sys_tty_config in 2.6 that did not in 2.4. Examples include FreeRADIUS, a bash script from the startup of CIPE, and courier-authdaemon.
Another issue is that on 2.6 the "atsadc" program from the atsar package now seems to want sys_admin capability, while on 2.4 it did not. But it seems to work OK without such access (the base functionality works - not sure if I'm missing something). In any case it may be best to lose a bit of functionality to avoid granting sys_admin...
Signature · 10 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 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 11 lines · Russell Coker
It seems that the meaning of
sys_tty_confighas changed between 2.4 and 2.6. When comparing a 2.4 kernel running the back-port of the new SE Linux code to 2.6.0-test9 I find that many applications requestsys_tty_configin 2.6 that did not in 2.4. Examples include FreeRADIUS, a bash script from the startup of CIPE, and courier-authdaemon.Another issue is that on 2.6 the "atsadc" program from the atsar package now seems to want
sys_admincapability, while on 2.4 it did not. But it seems to work OK without such access (the base functionality works - not sure if I'm missing something). In any case it may be best to lose a bit of functionality to avoid grantingsys_admin...
A number of legacy superuser (suser) checks were finally replaced with capability (capable) checks in 2.6. So 2.4 would have just required euid 0 in those cases, whereas 2.6 is now checking a particular capability.
Signature · 8 lines
Stephen Smalley <[email protected]> National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.