Skip to content

Commit 4616a8c

Browse files
committed
lsm: send test_install_t chcon output to /dev/null
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 <[email protected]>
1 parent 2ef5b3d commit 4616a8c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/lsm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ fn test_install_t() -> Result<bool> {
3939
let st = Command::new("chcon")
4040
.args(["-t", "invalid_bootcinstall_testlabel_t"])
4141
.arg(tmpf.path())
42+
.stderr(std::process::Stdio::null())
4243
.status()?;
4344
Ok(st.success())
4445
}

0 commit comments

Comments
 (0)