Skip to contentSkip to conversation

what is a suitable type for /dev/media0

refpolicy Dominick Grift 2 participants 4 messages Sep 26, 2011 – Oct 4, 2011

lore
Share & tools
lore
#0 lore raw

/dev/media0 character device node is currently labeled type device_t:

Quoted 2 lines
# matchpathcon /dev/media0
/dev/media0	system_u:object_r:device_t:s0

What would be a suitable type for this device? v4l_device_t?

Quoted 9 lines

Media Device
A Media device is the umbrella device under which multiple sub-entities called Media entities can be accessed, modified and worked upon. The Media Device is exposed to the user in form of a device file, which can be opened to enumerate, set and get the parameters of each of the media entities. For example, in DM365 implementation the entire VPFE capture device with its IPIPE, IPIPEIF, CCDC etc is exposed as a Media Device - /dev/media0. If there were a display driver, it would be exposed as a Media device too.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20110926/261d3676/attachment.bin

#1 lore raw
Quoted 17 lines · Dominick Grift

/dev/media0 character device node is currently labeled type device_t:

Quoted 2 lines
# matchpathcon /dev/media0
/dev/media0	system_u:object_r:device_t:s0

What would be a suitable type for this device? v4l_device_t?

Quoted 9 lines

Media Device
A Media device is the umbrella device under which multiple sub-entities called Media entities can be accessed, modified and worked upon. The Media Device is exposed to the user in form of a device file, which can be opened to enumerate, set and get the parameters of each of the media entities. For example, in DM365 implementation the entire VPFE capture device with its IPIPE, IPIPEIF, CCDC etc is exposed as a Media Device - /dev/media0. If there were a display driver, it would be exposed as a Media device too.

It seems like that would be a reasonable label, but the description you provided isn't so helpful. Do you know what kernel module handles support for this device? Is it something under drivers/media? Alternatively, do you have examples of devices that are accessed through this node? From what I can google, it seems to support v4l_device_t, but I'd like a little more assurance.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
#2 lore raw
Quoted 19 lines · Christopher J. PeBenito
Quoted 17 lines · Dominick Grift

/dev/media0 character device node is currently labeled type device_t:

Quoted 2 lines
# matchpathcon /dev/media0
/dev/media0	system_u:object_r:device_t:s0

What would be a suitable type for this device? v4l_device_t?

Quoted 9 lines

Media Device
A Media device is the umbrella device under which multiple sub-entities called Media entities can be accessed, modified and worked upon. The Media Device is exposed to the user in form of a device file, which can be opened to enumerate, set and get the parameters of each of the media entities. For example, in DM365 implementation the entire VPFE capture device with its IPIPE, IPIPEIF, CCDC etc is exposed as a Media Device - /dev/media0. If there were a display driver, it would be exposed as a Media device too.

Quoted 1 line

It seems like that would be a reasonable label, but the description you provided isn't so helpful. Do you know what kernel module handles support for this device? Is it something under drivers/media? Alternatively, do you have examples of devices that are accessed through this node? From what I can google, it seems to support v4l_device_t, but I'd like a little more assurance.

I think this is applicable

http://lwn.net/Articles/408392/
http://linuxtv.org/downloads/presentations/summit_jun_2010/20100206-fosdem.pdf

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20110927/6c3bf475/attachment-0001.bin

#3 lore raw
Quoted 20 lines · Dominick Grift
Quoted 19 lines · Christopher J. PeBenito
Quoted 17 lines · Dominick Grift

/dev/media0 character device node is currently labeled type device_t:

Quoted 2 lines
# matchpathcon /dev/media0
/dev/media0	system_u:object_r:device_t:s0

What would be a suitable type for this device? v4l_device_t?

Quoted 9 lines

Media Device
A Media device is the umbrella device under which multiple sub-entities called Media entities can be accessed, modified and worked upon. The Media Device is exposed to the user in form of a device file, which can be opened to enumerate, set and get the parameters of each of the media entities. For example, in DM365 implementation the entire VPFE capture device with its IPIPE, IPIPEIF, CCDC etc is exposed as a Media Device - /dev/media0. If there were a display driver, it would be exposed as a Media device too.

Quoted 6 lines
Quoted 1 line

It seems like that would be a reasonable label, but the description you provided isn't so helpful. Do you know what kernel module handles support for this device? Is it something under drivers/media? Alternatively, do you have examples of devices that are accessed through this node? From what I can google, it seems to support v4l_device_t, but I'd like a little more assurance.

I think this is applicable

http://lwn.net/Articles/408392/
http://linuxtv.org/downloads/presentations/summit_jun_2010/20100206-fosdem.pdf

So we can go with v4l_device_t.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com