1 |
commit: 3b9033ffba1283a75ae990d26ee68bf3a9fcbc0d |
2 |
Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
3 |
AuthorDate: Fri Aug 24 16:58:43 2012 +0000 |
4 |
Commit: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> |
5 |
CommitDate: Fri Aug 24 16:58:43 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=3b9033ff |
7 |
|
8 |
Mark /etc/env.d as runtime etc file |
9 |
|
10 |
The /etc/env.d location held the use of etc_runtime_t for files. However, |
11 |
gcc-config creates symbolic links within (/etc/env.d/gcc) and only holds the |
12 |
rights to manipulate etc_runtime_t. |
13 |
|
14 |
Although not purely runtime information (as in /etc/mtab related information), |
15 |
it is more dynamic than regular /etc files (etc_t), so marking as such. |
16 |
|
17 |
--- |
18 |
policy/modules/kernel/files.fc | 2 +- |
19 |
1 files changed, 1 insertions(+), 1 deletions(-) |
20 |
|
21 |
diff --git a/policy/modules/kernel/files.fc b/policy/modules/kernel/files.fc |
22 |
index 1975fc4..dd95387 100644 |
23 |
--- a/policy/modules/kernel/files.fc |
24 |
+++ b/policy/modules/kernel/files.fc |
25 |
@@ -75,7 +75,7 @@ ifdef(`distro_suse',` |
26 |
ifdef(`distro_gentoo', ` |
27 |
/etc/profile\.env -- gen_context(system_u:object_r:etc_runtime_t,s0) |
28 |
/etc/csh\.env -- gen_context(system_u:object_r:etc_runtime_t,s0) |
29 |
-/etc/env\.d/.* -- gen_context(system_u:object_r:etc_runtime_t,s0) |
30 |
+/etc/env\.d(/.*)? gen_context(system_u:object_r:etc_runtime_t,s0) |
31 |
') |
32 |
|
33 |
ifdef(`distro_redhat',` |