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