/dev/pty*
What's the correct type for /dev/pty*? devpts_t?
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 1 line · Russell Coker
What's the correct type for
/dev/pty*?devpts_t?
Possibly, but you are likely to need some additional rules. We've always used the devpts pseudo filesystem (or alternatively, devfs now that Rogelio's patch has been merged) and haven't tried using SELinux with traditional /dev/pty* nodes.
--
Stephen D. Smalley, NAI Labs
[email protected]
--
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 · Stephen Smalley
Quoted 1 line · Russell Coker
What's the correct type for
/dev/pty*?devpts_t?Possibly, but you are likely to need some additional rules. We've always used the devpts pseudo filesystem (or alternatively, devfs now that Rogelio's patch has been merged) and haven't tried using SELinux with traditional
/dev/pty*nodes.
Actually I've never tried using /dev/pty* (or at least never wanted to try it).
However with a default devfs setup you get /dev/pty* symlinks and some applications will try /dev/pty* first (and presumably they would try /dev/pty* first on a non-devfs system with all the default device nodes in place), should we consider such applications to be broken and file bug reports?
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 4 lines · Stephen Smalley
Possibly, but you are likely to need some additional rules. We've always used the devpts pseudo filesystem (or alternatively, devfs now that Rogelio's patch has been merged) and haven't tried using SELinux with traditional
/dev/pty*nodes.
In addition to policy changes, you'll also need to deal with more explicit relabels for traditional /dev/pty* nodes. With devpts or devfs, we can automatically assign a derived type to the dynamically created pty node based on the allocating process' domain, so when a user program allocates a pty, the new pty automatically picks up the right type. In contrast, traditional /dev/pty* nodes will have to be explicitly relabeled.
--
Stephen D. Smalley, NAI Labs
[email protected]
--
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.