Skip to contentSkip to conversation

newrole and serial console

DISCUSSION Russell Coker 2 participants 2 messages Nov 19, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw

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.
#1 lore raw
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.