Skip to contentSkip to conversation

serial devices

DISCUSSION Russell Coker 3 participants 3 messages Oct 4, 2003 – Oct 6, 2003 SELinux security module

lore
Share & tools
lore
#0 lore raw

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.
#1 lore raw
Quoted 8 lines · Russell Coker

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.

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.
#2 lore raw
In reply to Russell Coker
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.