Merge pull request #112037 from mingweishih/update_default_proc_mount

Move /proc/asound from defaultReadonlyPaths to defaultMaskedPaths
This commit is contained in:
Kubernetes Prow Robot 2023-02-14 23:28:24 -08:00 committed by GitHub
commit 964529b227
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,9 +188,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",
@ -202,7 +203,6 @@ var (
"/sys/firmware", "/sys/firmware",
} }
defaultReadonlyPaths = []string{ defaultReadonlyPaths = []string{
"/proc/asound",
"/proc/bus", "/proc/bus",
"/proc/fs", "/proc/fs",
"/proc/irq", "/proc/irq",