From: guido@trentalancia.com (Guido Trentalancia) Date: Wed, 09 Mar 2011 22:58:06 +0100 Subject: [refpolicy] [PATCH 01/15] Support /usr/sbin/alsactl location too (fex. Gentoo, Slackware, Arch) In-Reply-To: <20110309210524.GA4658@siphos.be> References: <20110309210524.GA4658@siphos.be> Message-ID: <1299707886.2974.6.camel@tesla.lan> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com Local symlink ? Or at least ifdef in the file context file ? I mean if refpolicy has to cater for every single case of different location for every different distribution or installation... On Wed, 09/03/2011 at 22.05 +0100, Sven Vermeulen wrote: > The alsactl binary is often installed in /usr/sbin instead of /sbin (not a > necessity to start up the system). Used in distributions such as Gentoo, > Slackware and Arch. > > Signed-off-by: Sven Vermeulen > --- > policy/modules/admin/alsa.fc | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/policy/modules/admin/alsa.fc b/policy/modules/admin/alsa.fc > index 72a0458..9834458 100644 > --- a/policy/modules/admin/alsa.fc > +++ b/policy/modules/admin/alsa.fc > @@ -8,6 +8,7 @@ HOME_DIR/\.asoundrc -- gen_context(system_u:object_r:alsa_home_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) > +/usr/sbin/alsactl -- gen_context(system_u:object_r:alsa_exec_t,s0) > /sbin/salsa -- gen_context(system_u:object_r:alsa_exec_t,s0) > > /usr/bin/ainit -- gen_context(system_u:object_r:alsa_exec_t,s0)