mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #125970 from carlory/sync-masked-path-from-moby
defaultMaskedPaths must be kept in sync with moby/moby
This commit is contained in:
commit
bb089b9374
@ -188,7 +188,7 @@ func AddNoNewPrivileges(sc *v1.SecurityContext) bool {
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
// These *must* be kept in sync with moby/moby.
|
// These *must* be kept in sync with moby/moby.
|
||||||
// https://github.com/moby/moby/blob/master/oci/defaults.go#L105-L123
|
// https://github.com/moby/moby/blob/master/oci/defaults.go#L105-L124
|
||||||
// @jessfraz will watch changes to those files upstream.
|
// @jessfraz will watch changes to those files upstream.
|
||||||
defaultMaskedPaths = []string{
|
defaultMaskedPaths = []string{
|
||||||
"/proc/asound",
|
"/proc/asound",
|
||||||
@ -201,6 +201,7 @@ var (
|
|||||||
"/proc/sched_debug",
|
"/proc/sched_debug",
|
||||||
"/proc/scsi",
|
"/proc/scsi",
|
||||||
"/sys/firmware",
|
"/sys/firmware",
|
||||||
|
"/sys/devices/virtual/powercap",
|
||||||
}
|
}
|
||||||
defaultReadonlyPaths = []string{
|
defaultReadonlyPaths = []string{
|
||||||
"/proc/bus",
|
"/proc/bus",
|
||||||
|
Loading…
Reference in New Issue
Block a user