From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by passt.top (Postfix, from userid 1000) id 810CC5A026E; Tue, 21 Feb 2023 19:39:15 +0100 (CET) From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 4/6] selinux/passt.te: Allow setcap on the process itself Date: Tue, 21 Feb 2023 19:39:13 +0100 Message-Id: <20230221183915.3740123-5-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: 43LKN6AYVWIVFOZ2JG3FZKEUOTZLUOLD X-Message-ID-Hash: 43LKN6AYVWIVFOZ2JG3FZKEUOTZLUOLD 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: This is needed by the new functions in isolate.c, add the corresponding rule. Signed-off-by: Stefano Brivio --- contrib/selinux/passt.te | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/selinux/passt.te b/contrib/selinux/passt.te index 12a4288..45d56c2 100644 --- a/contrib/selinux/passt.te +++ b/contrib/selinux/passt.te @@ -90,6 +90,7 @@ allow passt_t user_devpts_t:chr_file { getattr read write ioctl }; logging_send_syslog_msg(passt_t) allow syslogd_t self:cap_userns sys_ptrace; +allow passt_t self:process setcap; allow passt_t self:capability { sys_tty_config setpcap net_bind_service }; allow passt_t self:cap_userns { setpcap sys_admin sys_ptrace }; -- 2.39.1