newrole and serial console
I find that a serial console does not work with newrole. Newrole will re-open the terminal device to relabel it, and the re-open will block because it is already open.
Why is it that the file handles 0..2 are closed and re-opened for the child? Why not just keep the existing handles after changing the context of the device node?
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 7 lines · Russell Coker
I find that a serial console does not work with newrole. Newrole will re-open the terminal device to relabel it, and the re-open will block because it is already open.
Why is it that the file handles 0..2 are closed and re-opened for the child? Why not just keep the existing handles after changing the context of the device node?
That requires allowing the new domain to use descriptors created by the old domain.
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.