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 8C8D9158091 for ; Mon, 6 Jun 2022 15:16:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D63D1E085B; Mon, 6 Jun 2022 15:16: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 BB25BE085B for ; Mon, 6 Jun 2022 15:16: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 D328F3416C7 for ; Mon, 6 Jun 2022 15:16:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6843A326 for ; Mon, 6 Jun 2022 15:15: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: <1654528479.8aeb3323b6470c07f3c0fe5d14e86385ff1ab722.concord@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:concord-dev commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/init.fc policy/modules/system/iptables.fc X-VCS-Directories: policy/modules/system/ X-VCS-Committer: concord X-VCS-Committer-Name: Kenton Groombridge X-VCS-Revision: 8aeb3323b6470c07f3c0fe5d14e86385ff1ab722 X-VCS-Branch: concord-dev Date: Mon, 6 Jun 2022 15:15: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: f91aef20-42f9-45e2-97df-3694ff7e77cc X-Archives-Hash: 6d0763e1fc04ed74bd6bd2f6a427a320 commit: 8aeb3323b6470c07f3c0fe5d14e86385ff1ab722 Author: Kenton Groombridge gentoo org> AuthorDate: Wed Jan 27 01:02:21 2021 +0000 Commit: Kenton Groombridge gentoo org> CommitDate: Mon Jun 6 15:14:39 2022 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=8aeb3323 iptables: add file context for saved rules Bug: https://bugs.gentoo.org/840230 Signed-off-by: Kenton Groombridge gentoo.org> policy/modules/system/init.fc | 1 - policy/modules/system/iptables.fc | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/policy/modules/system/init.fc b/policy/modules/system/init.fc index fe661d5d..4a7c0e00 100644 --- a/policy/modules/system/init.fc +++ b/policy/modules/system/init.fc @@ -82,7 +82,6 @@ ifdef(`distro_debian',` ifdef(`distro_gentoo', ` /var/lib/init\.d(/.*)? gen_context(system_u:object_r:initrc_state_t,s0) -/var/lib/ip6?tables(/.*)? gen_context(system_u:object_r:initrc_tmp_t,s0) /run/openrc(/.*)? gen_context(system_u:object_r:initrc_state_t,s0) /run/svscan\.pid -- gen_context(system_u:object_r:initrc_runtime_t,s0) diff --git a/policy/modules/system/iptables.fc b/policy/modules/system/iptables.fc index ba65e811..6157f313 100644 --- a/policy/modules/system/iptables.fc +++ b/policy/modules/system/iptables.fc @@ -45,3 +45,8 @@ /usr/sbin/xtables-legacy-multi -- gen_context(system_u:object_r:iptables_exec_t,s0) /usr/sbin/xtables-multi -- gen_context(system_u:object_r:iptables_exec_t,s0) /usr/sbin/xtables-nft-multi -- gen_context(system_u:object_r:iptables_exec_t,s0) + +ifdef(`distro_gentoo', ` +/var/lib/ip6?tables(/.*)? gen_context(system_u:object_r:iptables_conf_t,s0) +/var/lib/nftables(/.*)? gen_context(system_u:object_r:iptables_conf_t,s0) +') 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 2DBC8158091 for ; Mon, 6 Jun 2022 15:15:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 77957E085B; Mon, 6 Jun 2022 15:15:30 +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 5CE8CE085B for ; Mon, 6 Jun 2022 15:15:30 +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 790B4341430 for ; Mon, 6 Jun 2022 15:15:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 02696326 for ; Mon, 6 Jun 2022 15:15:28 +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: <1654528479.8aeb3323b6470c07f3c0fe5d14e86385ff1ab722.concord@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:various-20211111 commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/init.fc policy/modules/system/iptables.fc X-VCS-Directories: policy/modules/system/ X-VCS-Committer: concord X-VCS-Committer-Name: Kenton Groombridge X-VCS-Revision: 8aeb3323b6470c07f3c0fe5d14e86385ff1ab722 X-VCS-Branch: various-20211111 Date: Mon, 6 Jun 2022 15:15:28 +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: 54fb2a26-47e9-48ba-bb9d-0457ffd5644a X-Archives-Hash: c1f4fb0badbf7eb3a0e1a6b99e69a370 Message-ID: <20220606151528.8IsqcXY8hxXt8pphDh0K1IiyhGRqvf0LupyGUdd4b3M@z> commit: 8aeb3323b6470c07f3c0fe5d14e86385ff1ab722 Author: Kenton Groombridge gentoo org> AuthorDate: Wed Jan 27 01:02:21 2021 +0000 Commit: Kenton Groombridge gentoo org> CommitDate: Mon Jun 6 15:14:39 2022 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=8aeb3323 iptables: add file context for saved rules Bug: https://bugs.gentoo.org/840230 Signed-off-by: Kenton Groombridge gentoo.org> policy/modules/system/init.fc | 1 - policy/modules/system/iptables.fc | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/policy/modules/system/init.fc b/policy/modules/system/init.fc index fe661d5d..4a7c0e00 100644 --- a/policy/modules/system/init.fc +++ b/policy/modules/system/init.fc @@ -82,7 +82,6 @@ ifdef(`distro_debian',` ifdef(`distro_gentoo', ` /var/lib/init\.d(/.*)? gen_context(system_u:object_r:initrc_state_t,s0) -/var/lib/ip6?tables(/.*)? gen_context(system_u:object_r:initrc_tmp_t,s0) /run/openrc(/.*)? gen_context(system_u:object_r:initrc_state_t,s0) /run/svscan\.pid -- gen_context(system_u:object_r:initrc_runtime_t,s0) diff --git a/policy/modules/system/iptables.fc b/policy/modules/system/iptables.fc index ba65e811..6157f313 100644 --- a/policy/modules/system/iptables.fc +++ b/policy/modules/system/iptables.fc @@ -45,3 +45,8 @@ /usr/sbin/xtables-legacy-multi -- gen_context(system_u:object_r:iptables_exec_t,s0) /usr/sbin/xtables-multi -- gen_context(system_u:object_r:iptables_exec_t,s0) /usr/sbin/xtables-nft-multi -- gen_context(system_u:object_r:iptables_exec_t,s0) + +ifdef(`distro_gentoo', ` +/var/lib/ip6?tables(/.*)? gen_context(system_u:object_r:iptables_conf_t,s0) +/var/lib/nftables(/.*)? gen_context(system_u:object_r:iptables_conf_t,s0) +')