Gentoo Archives: gentoo-commits

From: Kenton Groombridge <concord@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-refpolicy:various-20211111 commit in: policy/modules/services/
Date: Mon, 06 Jun 2022 15:15:31
Message-Id: 1654528503.a10abea170376871caa2a53b8f103672b09e8acf.concord@gentoo
1 commit: a10abea170376871caa2a53b8f103672b09e8acf
2 Author: Kenton Groombridge <concord <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 12 01:24:07 2021 +0000
4 Commit: Kenton Groombridge <concord <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 6 15:15:03 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=a10abea1
7
8 apache: add gentoo-specific interface to map httpd sys content
9
10 Signed-off-by: Kenton Groombridge <concord <AT> gentoo.org>
11
12 policy/modules/services/apache.if | 20 ++++++++++++++++++++
13 1 file changed, 20 insertions(+)
14
15 diff --git a/policy/modules/services/apache.if b/policy/modules/services/apache.if
16 index 2b3a7f3c..8daa613b 100644
17 --- a/policy/modules/services/apache.if
18 +++ b/policy/modules/services/apache.if
19 @@ -1466,3 +1466,23 @@ interface(`apache_rw_runtime_files',`
20
21 allow $1 httpd_runtime_t:file rw_file_perms;
22 ')
23 +
24 +########################################
25 +## <summary>
26 +## Map httpd sys content files.
27 +## This interface is Gentoo-specific.
28 +## </summary>
29 +## <param name="domain">
30 +## <summary>
31 +## Domain allowed access.
32 +## </summary>
33 +## </param>
34 +#
35 +interface(`apache_map_sys_content',`
36 + gen_require(`
37 + type httpd_sys_content_t, httpd_sys_rw_content_t;
38 + ')
39 +
40 + allow $1 httpd_sys_content_t:file map;
41 + allow $1 httpd_sys_rw_content_t:file map;
42 +')