core: Fix time namespace in RestrictNamespaces=

RestrictNamespaces= would accept "time" but would not actually apply
seccomp filters e.g. systemd-run -p RestrictNamespaces=time unshare -T true
should fail but it succeeded.

This commit actually enables time namespace seccomp filtering.
This commit is contained in:
Ryan Wilson
2024-12-10 20:55:26 +01:00
committed by Mike Yuan
parent 641714cb30
commit 219a6dbbf3
4 changed files with 16 additions and 11 deletions
+2 -1
View File
@@ -14,7 +14,8 @@
CLONE_NEWNS| \
CLONE_NEWPID| \
CLONE_NEWUSER| \
CLONE_NEWUTS))
CLONE_NEWUTS| \
CLONE_NEWTIME))
#define NAMESPACE_FLAGS_INITIAL ULONG_MAX