From: guido@trentalancia.net (Guido Trentalancia) Date: Tue, 09 Aug 2016 22:02:05 +0200 Subject: [refpolicy] [PATCH v2] Update file contexts for the alsa module In-Reply-To: <89ebee6b-8605-678d-e323-28d6e99778cd@gmail.com> References: <1470771217.3770.2.camel@trentalancia.net> <89ebee6b-8605-678d-e323-28d6e99778cd@gmail.com> Message-ID: <1470772925.3770.6.camel@trentalancia.net> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com Update the alsa module so that the alsa_etc_rw_t file context is widened to the whole share directory, instead of just a couple of files. Thanks to Dominick Grift for pointing out redundant interface usage in the previous version of this patch. Signed-off-by: Guido Trentalancia --- policy/modules/contrib/alsa.fc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- refpolicy-git-06082016-orig/policy/modules/contrib/alsa.fc 2016-08-06 21:27:11.326094018 +0200 +++ refpolicy-git-06082016/policy/modules/contrib/alsa.fc 2016-08-09 21:03:34.117512342 +0200 @@ -25,8 +25,7 @@ ifdef(`distro_debian',` /usr/sbin/alsactl -- gen_context(system_u:object_r:alsa_exec_t,s0) /usr/sbin/salsa -- gen_context(system_u:object_r:alsa_exec_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) +/usr/share/alsa(/.*)? gen_context(system_u:object_r:alsa_etc_rw_t,s0) /var/lib/alsa(/.*)? gen_context(system_u:object_r:alsa_var_lib_t,s0)