- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ConvertToRuntimeMaskedPaths (0.32 sec)
-
pkg/kubelet/kuberuntime/security_context.go
synthesized := convertToRuntimeSecurityContext(effectiveSc) if synthesized == nil { synthesized = &runtimeapi.LinuxContainerSecurityContext{ MaskedPaths: securitycontext.ConvertToRuntimeMaskedPaths(effectiveSc.ProcMount), ReadonlyPaths: securitycontext.ConvertToRuntimeReadonlyPaths(effectiveSc.ProcMount), } } var err error
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 5.2K bytes - Viewed (0) -
pkg/securitycontext/util.go
defaultReadonlyPaths = []string{ "/proc/bus", "/proc/fs", "/proc/irq", "/proc/sys", "/proc/sysrq-trigger", } ) // ConvertToRuntimeMaskedPaths converts the ProcMountType to the specified or default // masked paths. func ConvertToRuntimeMaskedPaths(opt *v1.ProcMountType) []string { if opt != nil && *opt == v1.UnmaskedProcMount { // Unmasked proc mount should have no paths set as masked.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 15 07:28:24 UTC 2023 - 7.5K bytes - Viewed (0) -
pkg/securitycontext/util_test.go
"procMount default": { pm: &dPM, expect: defaultMaskedPaths, }, "procMount unmasked": { pm: &uPM, expect: []string{}, }, } for k, v := range tests { actual := ConvertToRuntimeMaskedPaths(v.pm) if !reflect.DeepEqual(actual, v.expect) { t.Errorf("%s failed, expected %#v but received %#v", k, v.expect, actual) } } } func TestConvertToRuntimeReadonlyPaths(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 05 01:25:23 UTC 2020 - 5K bytes - Viewed (0)