From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by passt.top (Postfix, from userid 1000) id 4D2385A026E; Tue, 7 Mar 2023 00:28:39 +0100 (CET) From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 2/4] contrib/selinux: Let passt write to stdout and stderr when it starts Date: Tue, 7 Mar 2023 00:28:37 +0100 Message-Id: <20230306232839.1996920-3-sbrivio@redhat.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230306232839.1996920-1-sbrivio@redhat.com> References: <20230306232839.1996920-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: RAWEHOJXU2RTVE4PRDGAG4BVBEBCC5SV X-Message-ID-Hash: RAWEHOJXU2RTVE4PRDGAG4BVBEBCC5SV 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 , Andrea Bolognani 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: Otherwise, it's unusable as stand-alone tool, or in foreground mode, and it's also impossible to get output from --help or --version, because for SELinux it's just a daemon. 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 593b346..6cd61f1 100644 --- a/contrib/selinux/passt.te +++ b/contrib/selinux/passt.te @@ -72,6 +72,7 @@ type_transition unconfined_t passt_exec_t : process passt_t; allow unconfined_t passt_t : process transition ; init_daemon_domain(passt_t, passt_exec_t) +term_use_all_inherited_terms(passt_t) allow passt_t bin_t:file { execute execute_no_trans map }; allow passt_t user_home_dir_t:dir { search add_name write }; -- 2.39.2