Skip to content

Commit b14b3c5

Browse files
committed
Removed extra timens
Signed-off-by: Carson Weeks <[email protected]>
1 parent cfd25b0 commit b14b3c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/libcontainer/src/process/init/process.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,9 @@ fn apply_rest_namespaces(
553553
) -> Result<()> {
554554
namespaces
555555
.apply_namespaces(|ns_type| -> bool {
556-
ns_type != CloneFlags::CLONE_NEWUSER && ns_type != CloneFlags::CLONE_NEWPID
556+
ns_type != CloneFlags::CLONE_NEWUSER
557+
&& ns_type != CloneFlags::CLONE_NEWPID
558+
&& ns_type != CloneFlags::from_bits_retain(LinuxNamespaceType::Time as i32)
557559
})
558560
.map_err(|err| {
559561
tracing::error!(

0 commit comments

Comments
 (0)