diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy-git/poky-policy-add-rules-for-var-log-symlink-apache.patch')
| -rw-r--r-- | recipes-security/refpolicy/refpolicy-git/poky-policy-add-rules-for-var-log-symlink-apache.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy-git/poky-policy-add-rules-for-var-log-symlink-apache.patch b/recipes-security/refpolicy/refpolicy-git/poky-policy-add-rules-for-var-log-symlink-apache.patch new file mode 100644 index 0000000..8bc40c4 --- /dev/null +++ b/recipes-security/refpolicy/refpolicy-git/poky-policy-add-rules-for-var-log-symlink-apache.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From ed2b0a00e2fb78056041b03c7e198e8f5adaf939 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
| 3 | Date: Thu, 22 Aug 2013 19:36:44 +0800 | ||
| 4 | Subject: [PATCH 3/6] add rules for the symlink of /var/log - apache2 | ||
| 5 | |||
| 6 | We have added rules for the symlink of /var/log in logging.if, | ||
| 7 | while apache.te uses /var/log but does not use the interfaces in | ||
| 8 | logging.if. So still need add a individual rule for apache.te. | ||
| 9 | |||
| 10 | Upstream-Status: Inappropriate [only for Poky] | ||
| 11 | |||
| 12 | Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
| 13 | --- | ||
| 14 | policy/modules/contrib/apache.te | 1 + | ||
| 15 | 1 file changed, 1 insertion(+) | ||
| 16 | |||
| 17 | diff --git a/policy/modules/contrib/apache.te b/policy/modules/contrib/apache.te | ||
| 18 | index ec8bd13..06f2e95 100644 | ||
| 19 | --- a/policy/modules/contrib/apache.te | ||
| 20 | +++ b/policy/modules/contrib/apache.te | ||
| 21 | @@ -400,6 +400,7 @@ create_files_pattern(httpd_t, httpd_log_t, httpd_log_t) | ||
| 22 | append_files_pattern(httpd_t, httpd_log_t, httpd_log_t) | ||
| 23 | read_files_pattern(httpd_t, httpd_log_t, httpd_log_t) | ||
| 24 | read_lnk_files_pattern(httpd_t, httpd_log_t, httpd_log_t) | ||
| 25 | +read_lnk_files_pattern(httpd_t, var_log_t, var_log_t) | ||
| 26 | logging_log_filetrans(httpd_t, httpd_log_t, file) | ||
| 27 | |||
| 28 | allow httpd_t httpd_modules_t:dir list_dir_perms; | ||
| 29 | -- | ||
| 30 | 1.7.9.5 | ||
| 31 | |||
