aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zaman <jason@perfinion.com>2016-06-22 01:09:47 +0800
committerJason Zaman <jason@perfinion.com>2016-06-22 17:31:48 +0800
commitc2a380d8e68516d797985eb57246a0af54dbfe1e (patch)
tree7c0e24ba3baebb6241e7689836b920467dd8d452
parentAdd in xdg_runtime_home_type attribute for now (diff)
downloadhardened-refpolicy-c2a380d8.tar.gz
hardened-refpolicy-c2a380d8.tar.bz2
hardened-refpolicy-c2a380d8.zip
corecommands: Add fcontext for crossdev toolchains
-rw-r--r--policy/modules/kernel/corecommands.fc6
1 files changed, 4 insertions, 2 deletions
diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc
index 35752e77d..90541eb91 100644
--- a/policy/modules/kernel/corecommands.fc
+++ b/policy/modules/kernel/corecommands.fc
@@ -347,8 +347,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-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-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)
')
ifdef(`distro_redhat', `