Skip to content

Commit bb089b9

Browse files
authored
Merge pull request kubernetes#125970 from carlory/sync-masked-path-from-moby
defaultMaskedPaths must be kept in sync with moby/moby
2 parents 42064e0 + f0c2afa commit bb089b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/securitycontext/util.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func AddNoNewPrivileges(sc *v1.SecurityContext) bool {
188188

189189
var (
190190
// These *must* be kept in sync with moby/moby.
191-
// https://github.com/moby/moby/blob/master/oci/defaults.go#L105-L123
191+
// https://github.com/moby/moby/blob/master/oci/defaults.go#L105-L124
192192
// @jessfraz will watch changes to those files upstream.
193193
defaultMaskedPaths = []string{
194194
"/proc/asound",
@@ -201,6 +201,7 @@ var (
201201
"/proc/sched_debug",
202202
"/proc/scsi",
203203
"/sys/firmware",
204+
"/sys/devices/virtual/powercap",
204205
}
205206
defaultReadonlyPaths = []string{
206207
"/proc/bus",

0 commit comments

Comments
 (0)