diff options
author | Jason Zaman <jason@perfinion.com> | 2016-06-22 01:09:47 +0800 |
---|---|---|
committer | Jason Zaman <jason@perfinion.com> | 2016-06-22 17:31:48 +0800 |
commit | c2a380d8e68516d797985eb57246a0af54dbfe1e (patch) | |
tree | 7c0e24ba3baebb6241e7689836b920467dd8d452 | |
parent | Add in xdg_runtime_home_type attribute for now (diff) | |
download | hardened-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.fc | 6 |
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', ` |