Skip to contentSkip to conversation

Allow the alsa init script to read the default asound.state file

PATCH New Sven Vermeulen 2 participants 2 messages Feb 6, 2011 – Feb 9, 2011

lore
Share & tools
lore
#0 lore raw

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.

---
 policy/modules/system/init.te |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
policy/modules/system/init.te +4 -0
index 0580e7c..68ecbfa 100644
@@ -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',`
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/1 Allow the alsa init script to read the default asound.state file

Quoted 2 lines · Sven Vermeulen

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

Merged, with a little rearrangement.

Quoted 20 lines
---
  policy/modules/system/init.te |    4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)
policy/modules/system/init.te +4 -0
index 0580e7c..68ecbfa 100644
@@ -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',`
Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com