Block clock_adjtime in default seccomp config
clock_adjtime is the new posix style version of adjtime allowing a specific clock to be specified. Time is not namespaced, so do not allow. Signed-off-by: Justin Cormack <justin.cormack@unikernel.com> Upstream-commit: 0e5c43cddad304301ca8a82f652e15f75ee68cfe Component: engine
This commit is contained in:
@@ -28,6 +28,12 @@ var defaultSeccompProfile = &configs.Seccomp{
|
||||
Action: configs.Errno,
|
||||
Args: []*configs.Arg{},
|
||||
},
|
||||
{
|
||||
// Time/Date is not namespaced
|
||||
Name: "clock_adjtime",
|
||||
Action: configs.Errno,
|
||||
Args: []*configs.Arg{},
|
||||
},
|
||||
{
|
||||
// Time/Date is not namespaced
|
||||
Name: "clock_settime",
|
||||
|
||||
Reference in New Issue
Block a user