From mboxrd@z Thu Jan 1 00:00:00 1970 From: cpebenito@tresys.com (Christopher J. PeBenito) Date: Tue, 27 Sep 2011 09:17:56 -0400 Subject: [refpolicy] what is a suitable type for /dev/cdc-wdm[01] In-Reply-To: <1317032855.9488.30.camel@x220.mydomain.internal> References: <1317032855.9488.30.camel@x220.mydomain.internal> Message-ID: <4E81CD04.7080107@tresys.com> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com On 09/26/11 06:27, Dominick Grift wrote: > /dev/cdc-wdm[01] character device nodes are currently labeled type > device_t: > >> # matchpathcon /dev/cdc-wdm0 >> /dev/cdc-wdm0 system_u:object_r:device_t:s0 > > what would be suitable type for these devices? > >> CDC Device Management (2 "devices") >> CDC Mobile Direct Line (1 "device") >> >> The first is supported by the cdc-wdm driver available in 2.6.29 >> (haven't checked exactly when it was added, but it is rather new). >> It >> will add two new devices you can send AT commands >> to /dev/cdc-wdm[01], >> but not do any high speed data transfers over. Quite useful, since >> the >> three ACM devices are easily "lost" to GPS, SMS daemon and PPP. I'm not sure, possibly modem_device_t or a new type. >> The CDC Mobile Direct Line is actually a masqueraded CDC Ethernet If this is a different device node then this probably should be a new type. >> device. Ericsson has provided a driver which is mostly a copy of >> cdc_ether.c. Nice feature to have, but I've not been able to measure >> any speed advantages compared to PPP on ttyACM0. Still, fun to play >> with :-) > > 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. -- Chris PeBenito Tresys Technology, LLC www.tresys.com | oss.tresys.com