aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenton Groombridge <concord@gentoo.org>2021-11-11 20:24:07 -0500
committerKenton Groombridge <concord@gentoo.org>2022-06-06 11:15:03 -0400
commita10abea170376871caa2a53b8f103672b09e8acf (patch)
tree7c7981d4643ea272fe356cc0be4c7940898b7ade
parentportage: allow portage to map ebuild files (diff)
downloadhardened-refpolicy-a10abea1.tar.gz
hardened-refpolicy-a10abea1.tar.bz2
hardened-refpolicy-a10abea1.zip
apache: add gentoo-specific interface to map httpd sys content
Signed-off-by: Kenton Groombridge <concord@gentoo.org>
-rw-r--r--policy/modules/services/apache.if20
1 files changed, 20 insertions, 0 deletions
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;
+')