Skip to content

Commit 69c37dd

Browse files
authored
Merge pull request #178 from cgwalters/clarify-selinux-perm
lsm: Clarify selinux mode being set
2 parents 1477166 + b3fa8aa commit 69c37dd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/src/lsm.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,14 @@ pub(crate) fn selinux_set_permissive(permissive: bool) -> Result<()> {
126126
}
127127
let mut f = std::fs::File::options().write(true).open(enforce_path)?;
128128
f.write_all(if permissive { b"0" } else { b"1" })?;
129-
tracing::debug!("Set SELinux permissive mode");
129+
tracing::debug!(
130+
"Set SELinux mode: {}",
131+
if permissive {
132+
"permissive"
133+
} else {
134+
"enforcing"
135+
}
136+
);
130137
Ok(())
131138
}
132139

0 commit comments

Comments
 (0)