2011-03-09 21:15:01

by sven.vermeulen

[permalink] [raw]
Subject: [refpolicy] [PATCH 08/15] mplayer support for webcams

In order to work with webcams, mplayer domain needs write access to the
v4l_device_t (updates and reconfiguration of the video device)

Signed-off-by: Sven Vermeulen <[email protected]>
---
policy/modules/apps/mplayer.te | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/policy/modules/apps/mplayer.te b/policy/modules/apps/mplayer.te
index 931304b..d3e23ba 100644
--- a/policy/modules/apps/mplayer.te
+++ b/policy/modules/apps/mplayer.te
@@ -197,6 +197,7 @@ dev_read_urand(mplayer_t)
dev_rwx_zero(mplayer_t)
# Access to DVD/CD/V4L
dev_read_video_dev(mplayer_t)
+dev_write_video_dev(mplayer_t)
# Audio, alsa.conf
dev_read_sound_mixer(mplayer_t)
dev_write_sound_mixer(mplayer_t)
--
1.7.3.4


2011-03-24 18:36:06

by cpebenito

[permalink] [raw]
Subject: [refpolicy] [PATCH 08/15] mplayer support for webcams

On 03/09/11 16:15, Sven Vermeulen wrote:
> In order to work with webcams, mplayer domain needs write access to the
> v4l_device_t (updates and reconfiguration of the video device)

Merged.

> Signed-off-by: Sven Vermeulen <[email protected]>
> ---
> policy/modules/apps/mplayer.te | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/policy/modules/apps/mplayer.te b/policy/modules/apps/mplayer.te
> index 931304b..d3e23ba 100644
> --- a/policy/modules/apps/mplayer.te
> +++ b/policy/modules/apps/mplayer.te
> @@ -197,6 +197,7 @@ dev_read_urand(mplayer_t)
> dev_rwx_zero(mplayer_t)
> # Access to DVD/CD/V4L
> dev_read_video_dev(mplayer_t)
> +dev_write_video_dev(mplayer_t)
> # Audio, alsa.conf
> dev_read_sound_mixer(mplayer_t)
> dev_write_sound_mixer(mplayer_t)


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