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 7350E158094 for ; Sat, 3 Sep 2022 20:04:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AFBE8E086A; Sat, 3 Sep 2022 20:04:52 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id 98512E086A for ; Sat, 3 Sep 2022 20:04:52 +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 C1A43335D1C for ; Sat, 3 Sep 2022 20:04:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 322315A4 for ; Sat, 3 Sep 2022 20:04:50 +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: <1662235448.d935f927cd34c1a91d3a8f3c9278baeeef852320.concord@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master 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: d935f927cd34c1a91d3a8f3c9278baeeef852320 X-VCS-Branch: master Date: Sat, 3 Sep 2022 20:04:50 +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: da223185-52ab-43e2-bad8-ac854744d7ff X-Archives-Hash: eb1bbc3001ed60773e8dbec418f10eb3 Message-ID: <20220903200450.EloWv5DP90T8E2H1UuXw2bdD-mMyqfWRDerbgY9oisQ@z> commit: d935f927cd34c1a91d3a8f3c9278baeeef852320 Author: Kenton Groombridge gentoo org> AuthorDate: Wed Jan 27 01:02:21 2021 +0000 Commit: Kenton Groombridge gentoo org> CommitDate: Sat Sep 3 20:04:08 2022 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=d935f927 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) +')