policy problems
hi folks
i found the following problems with the policy:
- admins on the local console are not allowed to write to /dev/console
background: s390 don't know about vts, so this is the only console.
- noone is allowed to use nfs, maybe you should add some examples.
- inetd don't get the correct domain. the correct policy, inetd.te is included and the file is labeled correcly but the process remains in initrc_t.
| # ls -al --context /usr/sbin/inetd | -rwxr-xr-x root root system_u:object_r:inetd_exec_t /usr/sbin/inetd | # ps aux | grep "[i]netd" | root 916 0.0 0.4 1624 540 ? S 18:28 0:00 /usr/sbin/inetd | # cat /proc/916/attr/current;echo | system_u:system_r:initrc_t
bastian
Signature · 3 lines
Without facts, the decision cannot be made logically. You must rely on your human intuition. -- Spock, "Assignment: Earth", stardate unknown
Quoted 3 lines · Bastian Blank
i found the following problems with the policy:
- admins on the local console are not allowed to write to/dev/console
background: s390 don't know about vts, so this is the only console.
This is a problem. Daemons and start scripts want read/write access to /dev/ console at boot time. We do not want to grant daemons access to the administrator's terminal when they are logged in.
One option would be to change the context of /dev/console to tty_device_t after the system start scripts are complete, and then change it to console_device_t in the very first stages of boot (maybe from init).
Another option is to have the boot scripts write to a pty and then have a process proxy the data to /dev/console.
We get the same issues if you setup Red Hat in UML as a getty is provided on /dev/console by kudzu.
Quoted 1 line
- noone is allowed to use nfs, maybe you should add some examples.
The problem here is that there is no good support for nfs. I keep hearing rumors about people working on it but nothing concrete. Does anyone know anything?
Quoted 3 lines
- inetd don't get the correct domain. the correct policy, inetd.te is included and the file is labeled correcly but the process remains in
initrc_t.
Strange. Are you sure it had the correct type label at boot time?
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 3 lines · Russell Coker
The problem here is that there is no good support for nfs. I keep hearing rumors about people working on it but nothing concrete. Does anyone know anything?
Oops. I replied to Russell, but forgot to cc the list.
Yes. I am working on SELinux support for nfs. I plan to release a preliminary patch for 2.6 before the end of the year.
Signature · 7 lines
James Carter <[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.
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines · Russell Coker
Quoted 5 lines · James Carter
Quoted 3 lines · Russell Coker
The problem here is that there is no good support for nfs. I keep hearing rumors about people working on it but nothing concrete. Does anyone know anything?
Quoted 7 lines
Quoted 2 lines
Yes. I am working on SELinux support for nfs. I plan to release a preliminary patch for 2.6 before the end of the year.
Excellent!
How will it deal with the case of SE Linux client and server? Will the client and server have to have the same context for a file?
It will assume that the policies are the same for now.
Signature · 7 lines
James Carter <[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.
Quoted 9 lines · Bastian Blank
- inetd don't get the correct domain. the correct policy, inetd.te is included and the file is labeled correcly but the process remains in
initrc_t.| # ls -al --context /usr/sbin/inetd | -rwxr-xr-x root root system_u:object_r:inetd_exec_t /usr/sbin/inetd | # ps aux | grep "[i]netd" | root 916 0.0 0.4 1624 540 ? S 18:28 0:00 /usr/sbin/inetd | # cat /proc/916/attr/current;echo | system_u:system_r:initrc_t
Is there a 'type_transition initrc_t inetd_exec_t:process inetd_t;' rule in your policy.conf file? xinetd is running in inetd_t on my system.
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.
Quoted 2 lines · Stephen Smalley
Is there a '
type_transitioninitrc_tinetd_exec_t:processinetd_t;' rule in your policy.conf file? xinetd is running ininetd_ton my system.
it seems to be fixed after a reboot.
bastian
Signature · 6 lines
But Captain -- the engines can't take this much longer! -- 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.