commit: 139f4bb39aea6b202996abebe7581f1479e9fdf1
Author: Kenton Groombridge <concord <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 12 01:24:07 2021 +0000
Commit: Kenton Groombridge <concord <AT> gentoo <DOT> org>
CommitDate: Sat Sep 3 20:04:27 2022 +0000
URL:
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=139f4bb3
apache: add gentoo-specific interface to map httpd sys content
Signed-off-by: Kenton Groombridge <concord <AT> gentoo.org>
policy/modules/services/apache.if | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/policy/modules/services/apache.if
b/policy/modules/services/apache.if
index 2b3a7f3c..8daa613b 100644
--- a/policy/modules/services/apache.if
+++ b/policy/modules/services/apache.if
@@ -1466,3 +1466,23 @@ interface(`apache_rw_runtime_files',`
allow $1 httpd_runtime_t:file rw_file_perms;
')
+
+########################################
+## <summary>
+## Map httpd sys content files.
+## This interface is Gentoo-specific.
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+#
+interface(`apache_map_sys_content',`
+ gen_require(`
+ type httpd_sys_content_t, httpd_sys_rw_content_t;
+ ')
+
+ allow $1 httpd_sys_content_t:file map;
+ allow $1 httpd_sys_rw_content_t:file map;
+')