2011-02-06 14:42:13

by sven.vermeulen

[permalink] [raw]
Subject: [refpolicy] [PATCH 1/1] Allow the alsa init script to read the default asound.state file

In Gentoo, the ALSA init script (alsasound) reads in the default
asound.state file.

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

diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te
index 0580e7c..68ecbfa 100644
--- a/policy/modules/system/init.te
+++ b/policy/modules/system/init.te
@@ -464,6 +464,10 @@ ifdef(`distro_gentoo',`
optional_policy(`
dhcpd_setattr_state_files(initrc_t)
')
+
+ optional_policy(`
+ alsa_read_lib(initrc_t)
+ ')
')

ifdef(`distro_redhat',`
--
1.7.3.4


2011-02-09 14:45:08

by cpebenito

[permalink] [raw]
Subject: [refpolicy] [PATCH 1/1] Allow the alsa init script to read the default asound.state file

On 2/6/2011 9:42 AM, Sven Vermeulen wrote:
> In Gentoo, the ALSA init script (alsasound) reads in the default
> asound.state file.

Merged, with a little rearrangement.

> Signed-off-by: Sven Vermeulen<[email protected]>
> ---
> policy/modules/system/init.te | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te
> index 0580e7c..68ecbfa 100644
> --- a/policy/modules/system/init.te
> +++ b/policy/modules/system/init.te
> @@ -464,6 +464,10 @@ ifdef(`distro_gentoo',`
> optional_policy(`
> dhcpd_setattr_state_files(initrc_t)
> ')
> +
> + optional_policy(`
> + alsa_read_lib(initrc_t)
> + ')
> ')
>
> ifdef(`distro_redhat',`


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