From 6300a08be905969b16197f6a82a3d0d99a3f99cd Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Tue, 29 Dec 2015 15:22:52 +0000 Subject: [PATCH] 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 --- daemon/execdriver/native/seccomp_default.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/daemon/execdriver/native/seccomp_default.go b/daemon/execdriver/native/seccomp_default.go index 1075a0b315..217782a873 100644 --- a/daemon/execdriver/native/seccomp_default.go +++ b/daemon/execdriver/native/seccomp_default.go @@ -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",