serial devices
Currently we have serial ports labeled at tty_device_t by default.
The problem is that serial ports are used for modems, printers, and many other things than terminals. Currently the sample policy does not permit such access. So cups and lpd are not granted access, and if you want to run minicom you have to change the context of the device (and add new policy) or run minicom as sysadm_t.
I have been thinking of creating a new type for non-login serial devices and granting pppd, cups and lpd full access to it, then the administrator would have the option of granting users access to it for running minicom without allowing them to spoof logins.
Another possibility is to have different types for the device as used by cups, pppd, and minicom. Then change the contexts of serial devices to indicate which service they are for, but this could be painful to administer.
What do you think?
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 8 lines · Russell Coker
Currently we have serial ports labeled at
tty_device_tby default.The problem is that serial ports are used for modems, printers, and many other things than terminals. Currently the sample policy does not permit such access. So cups and lpd are not granted access, and if you want to run minicom you have to change the context of the device (and add new policy) or run minicom as
sysadm_t.
Quoted 4 lines
I have been thinking of creating a new type for non-login serial devices and granting pppd, cups and lpd full access to it, then the administrator would have the option of granting users access to it for running minicom without allowing them to spoof logins.
What would happen on smaller systems like my desktop machine where I want to use modems for dial-in and dial-out?
Quoted 3 lines
Another possibility is to have different types for the device as used by cups, pppd, and minicom. Then change the contexts of serial devices to indicate which service they are for, but this could be painful to administer.
This would be my preference. If I have a modem connected to the serial port, I don't want somebody compromising cups, and then use that as a stepping stone to make expense telephone calls at my expense...
Not that I consider this is very likely.
If its going to be difficult to aminister, I wonder if there is anything that could be done to simplify the task?
Signature · 6 lines
Brian May <[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 5 lines · Russell Coker
Another possibility is to have different types for the device as used by cups, pppd, and minicom. Then change the contexts of serial devices to indicate which service they are for, but this could be painful to administer.
What do you think?
It would be good not to need to run so many things in sysadm_t, but complicated administration is also a security problem.
- James
Signature · 9 lines
James Morris <[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.