mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
eb551baf6f
commit
6300a08be9
1 changed files with 6 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue