[refpolicy] what is a suitable type for /dev/cdc-wdm[01]

Christopher J. PeBenito cpebenito at tresys.com
Tue Sep 27 10:42:25 CDT 2011


On 09/27/11 11:33, Dominick Grift wrote:
> On Tue, 2011-09-27 at 09:17 -0400, Christopher J. PeBenito wrote:
>> On 09/26/11 06:27, Dominick Grift wrote:

>>> Also, why are ACM tty character device nodes labeled type tty_device_t
>>> and not for example acmtty_device_t?
>>
>> It would seem that modem_device_t would be a better choice, assuming all ttyACM* devices are cellular modems.
>>
> 
> why are serial ttys labeled tty_device_t?
> 
>> ls -alZ /dev/ | grep ttyS
>> crw-rw----. root tty     system_u:object_r:tty_device_t:s0 ttyS0
>> crw-rw----. root dialout system_u:object_r:tty_device_t:s0 ttyS1
>> crw-rw----. root dialout system_u:object_r:tty_device_t:s0 ttyS2
>> crw-rw----. root dialout system_u:object_r:tty_device_t:s0 ttyS3

Presumably due to serial terminals.  Its an imperfect default label, since serial ports can support other things.  I'm open to other suggestions.

-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com


More information about the refpolicy mailing list