From: srivasta@golden-gryphon.com (Manoj Srivastava) Date: Wed, 01 Jul 2009 10:07:04 -0500 Subject: [refpolicy] Debian puts alsa config files in a different location Message-ID: <87hbxwjvc7.fsf@anzu.internal.golden-gryphon.com> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com diff --git a/policy/modules/admin/alsa.fc b/policy/modules/admin/alsa.fc index 545a817..d197a6f 100644 --- a/policy/modules/admin/alsa.fc +++ b/policy/modules/admin/alsa.fc @@ -1,9 +1,15 @@ /bin/alsaunmute -- gen_context(system_u:object_r:alsa_exec_t,s0) -/etc/alsa/asound\.state -- gen_context(system_u:object_r:alsa_etc_rw_t,s0) /etc/alsa/pcm(/.*)? gen_context(system_u:object_r:alsa_etc_rw_t,s0) /etc/asound(/.*)? gen_context(system_u:object_r:alsa_etc_rw_t,s0) +ifdef(`distro_debian', ` +/var/lib/alsa/asound\.state gen_context(system_u:object_r:alsa_etc_rw_t,s0) +/usr/share/alsa/alsa\.conf gen_context(system_u:object_r:alsa_etc_rw_t,s0) +/usr/share/alsa/pcm(/.*)? gen_context(system_u:object_r:alsa_etc_rw_t,s0) +', ` +/etc/alsa/asound\.state -- gen_context(system_u:object_r:alsa_etc_rw_t,s0) /etc/asound\.state -- gen_context(system_u:object_r:alsa_etc_rw_t,s0) +') /sbin/alsactl -- gen_context(system_u:object_r:alsa_exec_t,s0) /sbin/salsa -- gen_context(system_u:object_r:alsa_exec_t,s0) -- Under capitalism man exploits man; under socialism the reverse is true. Manoj Srivastava 1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C