mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Move /proc/asound from defaultReadonlyPaths to defaultMaskedPaths (align with moby)
Signed-off-by: Ming-Wei Shih <mishih@microsoft.com>
This commit is contained in:
parent
76277917b9
commit
532bb2288e
@ -212,9 +212,10 @@ 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#L116-L134
|
// https://github.com/moby/moby/blob/master/oci/defaults.go#L105-L123
|
||||||
// @jessfraz will watch changes to those files upstream.
|
// @jessfraz will watch changes to those files upstream.
|
||||||
defaultMaskedPaths = []string{
|
defaultMaskedPaths = []string{
|
||||||
|
"/proc/asound",
|
||||||
"/proc/acpi",
|
"/proc/acpi",
|
||||||
"/proc/kcore",
|
"/proc/kcore",
|
||||||
"/proc/keys",
|
"/proc/keys",
|
||||||
@ -226,7 +227,6 @@ var (
|
|||||||
"/sys/firmware",
|
"/sys/firmware",
|
||||||
}
|
}
|
||||||
defaultReadonlyPaths = []string{
|
defaultReadonlyPaths = []string{
|
||||||
"/proc/asound",
|
|
||||||
"/proc/bus",
|
"/proc/bus",
|
||||||
"/proc/fs",
|
"/proc/fs",
|
||||||
"/proc/irq",
|
"/proc/irq",
|
||||||
|
Loading…
Reference in New Issue
Block a user