1 |
commit: c2a380d8e68516d797985eb57246a0af54dbfe1e |
2 |
Author: Jason Zaman <jason <AT> perfinion <DOT> com> |
3 |
AuthorDate: Tue Jun 21 17:09:47 2016 +0000 |
4 |
Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 22 09:31:48 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=c2a380d8 |
7 |
|
8 |
corecommands: Add fcontext for crossdev toolchains |
9 |
|
10 |
policy/modules/kernel/corecommands.fc | 6 ++++-- |
11 |
1 file changed, 4 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc |
14 |
index 35752e7..90541eb 100644 |
15 |
--- a/policy/modules/kernel/corecommands.fc |
16 |
+++ b/policy/modules/kernel/corecommands.fc |
17 |
@@ -347,8 +347,10 @@ ifdef(`distro_debian',` |
18 |
') |
19 |
|
20 |
ifdef(`distro_gentoo', ` |
21 |
-/usr/.*-.*-linux-gnu/gcc-bin/.*(/.*)? gen_context(system_u:object_r:bin_t,s0) |
22 |
-/usr/.*-.*-linux-gnu/binutils-bin(/.*)? gen_context(system_u:object_r:bin_t,s0) |
23 |
+/usr/[^/]+-[^/]+-linux-gnu/gcc-bin/.*(/.*)? gen_context(system_u:object_r:bin_t,s0) |
24 |
+/usr/[^/]+-[^/]+-linux-gnu/binutils-bin(/.*)? gen_context(system_u:object_r:bin_t,s0) |
25 |
+/usr/[^/]+-[^/]+-linux-gnu/[^/]+/gcc-bin/.*(/.*)? gen_context(system_u:object_r:bin_t,s0) |
26 |
+/usr/[^/]+-[^/]+-linux-gnu/[^/]+/binutils-bin(/.*)? gen_context(system_u:object_r:bin_t,s0) |
27 |
') |
28 |
|
29 |
ifdef(`distro_redhat', ` |