From: pebenito@ieee.org (Chris PeBenito) Date: Sun, 10 Jun 2018 13:04:46 -0400 Subject: [refpolicy] [PATCH] corecommands: adjust gcc fcontext to also work on musl In-Reply-To: <20180608095256.19824-1-jason@perfinion.com> References: <20180608095256.19824-1-jason@perfinion.com> Message-ID: <5153f4b0-e33f-bdd6-c4b4-7f403f262941@ieee.org> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com On 06/08/2018 05:52 AM, Jason Zaman wrote: > --- > policy/modules/kernel/corecommands.fc | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc > index f2e4f511..9a371606 100644 > --- a/policy/modules/kernel/corecommands.fc > +++ b/policy/modules/kernel/corecommands.fc > @@ -346,8 +346,10 @@ ifdef(`distro_debian',` > ') > > ifdef(`distro_gentoo', ` > -/usr/.*-.*-linux-gnu/gcc-bin/.*(/.*)? gen_context(system_u:object_r:bin_t,s0) > -/usr/.*-.*-linux-gnu/binutils-bin(/.*)? gen_context(system_u:object_r:bin_t,s0) > +/usr/[^/-]+-[^/-]+-linux-[^/-]+/gcc-bin/.*(/.*)? gen_context(system_u:object_r:bin_t,s0) > +/usr/[^/-]+-[^/-]+-linux-[^/-]+/binutils-bin(/.*)? gen_context(system_u:object_r:bin_t,s0) > +/usr/[^/-]+-[^/-]+-linux-[^/-]+/[^/]+/gcc-bin/.*(/.*)? gen_context(system_u:object_r:bin_t,s0) > +/usr/[^/-]+-[^/-]+-linux-[^/-]+/[^/]+/binutils-bin(/.*)? gen_context(system_u:object_r:bin_t,s0) > > /usr/lib/rcscripts/addons(/.*)? gen_context(system_u:object_r:bin_t,s0) > /usr/lib/rcscripts/sh(/.*)? gen_context(system_u:object_r:bin_t,s0) Merged. -- Chris PeBenito