From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9233E158091 for ; Mon, 6 Jun 2022 15:14:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D5499E0845; Mon, 6 Jun 2022 15:14:19 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BA6E3E0845 for ; Mon, 6 Jun 2022 15:14:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CFFAF341A29 for ; Mon, 6 Jun 2022 15:14:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5E2CE4F8 for ; Mon, 6 Jun 2022 15:13:47 +0000 (UTC) From: "Kenton Groombridge" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Kenton Groombridge" Message-ID: <1654528382.0d5ccab85bdcf69ce73f5702eaed97ee4d539533.concord@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:concord-dev commit in: policy/modules/services/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/services/apache.if X-VCS-Directories: policy/modules/services/ X-VCS-Committer: concord X-VCS-Committer-Name: Kenton Groombridge X-VCS-Revision: 0d5ccab85bdcf69ce73f5702eaed97ee4d539533 X-VCS-Branch: concord-dev Date: Mon, 6 Jun 2022 15:13:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7d76c4c1-b949-4c31-9639-428918ecd5d9 X-Archives-Hash: 7843100e19ca83564eb7834a78b698f5 commit: 0d5ccab85bdcf69ce73f5702eaed97ee4d539533 Author: Kenton Groombridge gentoo org> AuthorDate: Fri Nov 12 01:24:07 2021 +0000 Commit: Kenton Groombridge gentoo org> CommitDate: Mon Jun 6 15:13:02 2022 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=0d5ccab8 apache: add gentoo-specific interface to map httpd sys content Signed-off-by: Kenton Groombridge concord.sh> 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; ') + +######################################## +## +## Map httpd sys content files. +## This interface is Gentoo-specific. +## +## +## +## Domain allowed access. +## +## +# +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; +') From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B164E158091 for ; Mon, 6 Jun 2022 15:13:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB215E085A; Mon, 6 Jun 2022 15:13:34 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AD527E085A for ; Mon, 6 Jun 2022 15:13:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AAE0B341A3A for ; Mon, 6 Jun 2022 15:13:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 055F04F5 for ; Mon, 6 Jun 2022 15:13:32 +0000 (UTC) From: "Kenton Groombridge" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Kenton Groombridge" Message-ID: <1654528382.0d5ccab85bdcf69ce73f5702eaed97ee4d539533.concord@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:various-20211111 commit in: policy/modules/services/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/services/apache.if X-VCS-Directories: policy/modules/services/ X-VCS-Committer: concord X-VCS-Committer-Name: Kenton Groombridge X-VCS-Revision: 0d5ccab85bdcf69ce73f5702eaed97ee4d539533 X-VCS-Branch: various-20211111 Date: Mon, 6 Jun 2022 15:13:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4b603563-66d9-46a4-88ba-3b1134a47c19 X-Archives-Hash: b5db406c21183175647a8de1cc4b3825 Message-ID: <20220606151332.5dYKlXB-tQCxFoY_4N-0pFtmMCjmk136D1xUNX_zlew@z> commit: 0d5ccab85bdcf69ce73f5702eaed97ee4d539533 Author: Kenton Groombridge gentoo org> AuthorDate: Fri Nov 12 01:24:07 2021 +0000 Commit: Kenton Groombridge gentoo org> CommitDate: Mon Jun 6 15:13:02 2022 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=0d5ccab8 apache: add gentoo-specific interface to map httpd sys content Signed-off-by: Kenton Groombridge concord.sh> 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; ') + +######################################## +## +## Map httpd sys content files. +## This interface is Gentoo-specific. +## +## +## +## Domain allowed access. +## +## +# +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; +')