From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by passt.top (Postfix, from userid 1000) id 84AB05A0270; Tue, 21 Feb 2023 19:39:15 +0100 (CET) From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 6/6] selinux/passt.te: Allow setting socket option on routing netlink socket Date: Tue, 21 Feb 2023 19:39:15 +0100 Message-Id: <20230221183915.3740123-7-sbrivio@redhat.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230221183915.3740123-1-sbrivio@redhat.com> References: <20230221183915.3740123-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: 7WLFDT5ZJIBQ4IVNGNZCGJ7BIZZB4WBD X-Message-ID-Hash: 7WLFDT5ZJIBQ4IVNGNZCGJ7BIZZB4WBD X-MailFrom: sbrivio@passt.top X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Laine Stump X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Stefano Brivio --- contrib/selinux/passt.te | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/selinux/passt.te b/contrib/selinux/passt.te index 3125d52..7fa4fb9 100644 --- a/contrib/selinux/passt.te +++ b/contrib/selinux/passt.te @@ -98,7 +98,7 @@ allow passt_t proc_net_t:file read; allow passt_t net_conf_t:file { open read }; allow passt_t net_conf_t:lnk_file read; allow passt_t tmp_t:sock_file { create unlink write }; -allow passt_t self:netlink_route_socket { bind create nlmsg_read read write }; +allow passt_t self:netlink_route_socket { bind create nlmsg_read read write setopt }; allow passt_t self:tcp_socket create_stream_socket_perms; corenet_tcp_sendrecv_generic_node(passt_t) -- 2.39.1