瀏覽代碼

Whitelist adjtimex get operation. Adjustment operations are gated by CAP_SYS_TIME

Signed-off-by: Miklos Szegedi <miklos.szegedi@cloudera.com>
Miklos Szegedi 8 年之前
父節點
當前提交
2db05316d0
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      profiles/seccomp/default.json
  2. 1 1
      profiles/seccomp/seccomp_default.go

+ 1 - 1
profiles/seccomp/default.json

@@ -55,6 +55,7 @@
 				"accept",
 				"accept",
 				"accept4",
 				"accept4",
 				"access",
 				"access",
+				"adjtimex",
 				"alarm",
 				"alarm",
 				"alarm",
 				"alarm",
 				"bind",
 				"bind",
@@ -719,7 +720,6 @@
 			"names": [
 			"names": [
 				"settimeofday",
 				"settimeofday",
 				"stime",
 				"stime",
-				"adjtimex",
 				"clock_settime"
 				"clock_settime"
 			],
 			],
 			"action": "SCMP_ACT_ALLOW",
 			"action": "SCMP_ACT_ALLOW",

+ 1 - 1
profiles/seccomp/seccomp_default.go

@@ -49,6 +49,7 @@ func DefaultProfile() *types.Seccomp {
 				"accept",
 				"accept",
 				"accept4",
 				"accept4",
 				"access",
 				"access",
+				"adjtimex",
 				"alarm",
 				"alarm",
 				"alarm",
 				"alarm",
 				"bind",
 				"bind",
@@ -611,7 +612,6 @@ func DefaultProfile() *types.Seccomp {
 			Names: []string{
 			Names: []string{
 				"settimeofday",
 				"settimeofday",
 				"stime",
 				"stime",
-				"adjtimex",
 				"clock_settime",
 				"clock_settime",
 			},
 			},
 			Action: types.ActAllow,
 			Action: types.ActAllow,