From c6d200226aabe0cbd24e6e4d49b8079a43554259 Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Wed, 31 Jan 2024 14:46:31 -0500 Subject: [PATCH] lsm: send test_install_t chcon output to /dev/null MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise it's noisy: [root@localhost ~]# ./bootc update --check chcon: failed to change context of '/tmp/.tmp2rw6pV' to ‘unconfined_u:object_r:invalid_bootcinstall_testlabel_t:s0’: Invalid argument chcon: failed to change context of '/tmp/.tmpCiTvUm' to ‘unconfined_u:object_r:invalid_bootcinstall_testlabel_t:s0’: Invalid argument No changes in: ostree-unverified-registry:quay.io/centos-bootc/fedora-bootc-cloud:eln [root@localhost ~]# Signed-off-by: John Eckersberg --- lib/src/lsm.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/lsm.rs b/lib/src/lsm.rs index f2271e76..74c9feb9 100644 --- a/lib/src/lsm.rs +++ b/lib/src/lsm.rs @@ -39,6 +39,7 @@ fn test_install_t() -> Result { let st = Command::new("chcon") .args(["-t", "invalid_bootcinstall_testlabel_t"]) .arg(tmpf.path()) + .stderr(std::process::Stdio::null()) .status()?; Ok(st.success()) }