Skip to content

Commit

Permalink
lsm: send test_install_t chcon output to /dev/null
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jeckersb committed Jan 31, 2024
1 parent 2ef5b3d commit 4616a8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/lsm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ fn test_install_t() -> Result<bool> {
let st = Command::new("chcon")
.args(["-t", "invalid_bootcinstall_testlabel_t"])
.arg(tmpf.path())
.stderr(std::process::Stdio::null())
.status()?;
Ok(st.success())
}
Expand Down

0 comments on commit 4616a8c

Please sign in to comment.