Quellcode durchsuchen

Merge pull request #33403 from szegedim/33126-whitelist-adjtimex

Whitelisting adjtimex get time operation and requiring CAP_SYS_TIME only in case of adjustment
Tõnis Tiigi vor 8 Jahren
Ursprung
Commit
4f259698b0
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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",
 				"accept4",
 				"access",
+				"adjtimex",
 				"alarm",
 				"alarm",
 				"bind",
@@ -719,7 +720,6 @@
 			"names": [
 				"settimeofday",
 				"stime",
-				"adjtimex",
 				"clock_settime"
 			],
 			"action": "SCMP_ACT_ALLOW",

+ 1 - 1
profiles/seccomp/seccomp_default.go

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