Block stime in default seccomp profile
The stime syscall is a legacy syscall on some architectures to set the clock, should be blocked as time is not namespaced. Signed-off-by: Justin Cormack <justin.cormack@unikernel.com> Upstream-commit: 6300a08be905969b16197f6a82a3d0d99a3f99cd Component: engine
This commit is contained in:
@@ -280,6 +280,12 @@ var defaultSeccompProfile = &configs.Seccomp{
|
||||
Action: configs.Errno,
|
||||
Args: []*configs.Arg{},
|
||||
},
|
||||
{
|
||||
// Time/Date is not namespaced
|
||||
Name: "stime",
|
||||
Action: configs.Errno,
|
||||
Args: []*configs.Arg{},
|
||||
},
|
||||
{
|
||||
// Deny start/stop swapping to file/device
|
||||
Name: "swapon",
|
||||
|
||||
Reference in New Issue
Block a user