Skip to contentSkip to conversation

corecommands: adjust gcc fcontext to also work on musl

PATCH New Jason Zaman 2 participants 2 messages Jun 8, 2018 – Jun 10, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 corecommands: adjust gcc fcontext to also work on musl

---
 policy/modules/kernel/corecommands.fc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
policy/modules/kernel/corecommands.fc +4 -2
index f2e4f511..9a371606 100644
@@ -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)
Signature · 1 line
2.16.4
#1 lore raw

PATCH 1/1 corecommands: adjust gcc fcontext to also work on musl

Quoted 11 lines · Jason Zaman
---
  policy/modules/kernel/corecommands.fc | 6 ++++--
  1 file changed, 4 insertions(+), 2 deletions(-)
policy/modules/kernel/corecommands.fc +0 -0
index f2e4f511..9a371606 100644
@@ -346,8 +346,10 @@ ifdef(`distro_debian',`
  ')
 

policy/modules/kernel/corecommands.fc ifdef(`distro_debian',` · line 355

Quoted 10 lines
policy/modules/kernel/corecommands.fc +4 -2
  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.

Signature · 1 line
Chris PeBenito