summaryrefslogtreecommitdiffstats
path: root/recipes-security/refpolicy/refpolicy/0033-policy-modules-system-logging-add-domain-rules-for-t.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0033-policy-modules-system-logging-add-domain-rules-for-t.patch')
-rw-r--r--recipes-security/refpolicy/refpolicy/0033-policy-modules-system-logging-add-domain-rules-for-t.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0033-policy-modules-system-logging-add-domain-rules-for-t.patch b/recipes-security/refpolicy/refpolicy/0033-policy-modules-system-logging-add-domain-rules-for-t.patch
new file mode 100644
index 0000000..90995dc
--- /dev/null
+++ b/recipes-security/refpolicy/refpolicy/0033-policy-modules-system-logging-add-domain-rules-for-t.patch
@@ -0,0 +1,37 @@
1From 0385f2374297ab2b8799fe1ec28d12e1682ec074 Mon Sep 17 00:00:00 2001
2From: Xin Ouyang <Xin.Ouyang@windriver.com>
3Date: Fri, 23 Aug 2013 11:20:00 +0800
4Subject: [PATCH] policy/modules/system/logging: add domain rules for the
5 subdir symlinks in /var/
6
7Except /var/log,/var/run,/var/lock, there still other subdir symlinks in
8/var for poky, so we need allow rules for all domains to read these
9symlinks. Domains still need their practical allow rules to read the
10contents, so this is still a secure relax.
11
12Upstream-Status: Inappropriate [embedded specific]
13
14Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
15Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
16Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
17---
18 policy/modules/kernel/domain.te | 3 +++
19 1 file changed, 3 insertions(+)
20
21diff --git a/policy/modules/kernel/domain.te b/policy/modules/kernel/domain.te
22index 4e43a208d..7e5d2b458 100644
23--- a/policy/modules/kernel/domain.te
24+++ b/policy/modules/kernel/domain.te
25@@ -110,6 +110,9 @@ term_use_controlling_term(domain)
26 # list the root directory
27 files_list_root(domain)
28
29+# Yocto/oe-core use some var volatile links
30+files_read_var_symlinks(domain)
31+
32 ifdef(`hide_broken_symptoms',`
33 # This check is in the general socket
34 # listen code, before protocol-specific
35--
362.17.1
37