- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for backsteps (0.17 sec)
-
pkg/kubelet/kubelet_pods_linux_test.go
}, "invalid SubPath with backsteps": { podVolumes: kubecontainer.VolumeMap{ "disk": kubecontainer.VolumeInfo{Mounter: &stubVolume{path: "/mnt/disk"}}, }, container: v1.Container{ VolumeMounts: []v1.VolumeMount{ { MountPath: "/mnt/path3", SubPath: "no/backsteps/../allowed", Name: "disk", ReadOnly: true, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 09 18:00:59 UTC 2024 - 11.3K bytes - Viewed (0) -
pkg/volume/hostpath/host_path_test.go
} pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{UID: types.UID("poduid")}} mounter, err := plug.NewMounter(volume.NewSpecFromVolume(spec), pod, volume.VolumeOptions{}) if err != nil { t.Fatal(err) } err = mounter.SetUp(volume.MounterArgs{}) expectedMsg := "invalid HostPath `/no/backsteps/allowed/..`: must not contain '..'"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 00:37:30 UTC 2023 - 20.5K bytes - Viewed (0) -
pkg/volume/local/local_test.go
pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{UID: types.UID("poduid")}} mounter, err := plug.NewMounter(getTestVolume(false, "/no/backsteps/allowed/..", false, nil), pod, volume.VolumeOptions{}) if err != nil { t.Fatal(err) } err = mounter.SetUp(volume.MounterArgs{}) expectedMsg := "invalid path: /no/backsteps/allowed/.. must not contain '..'" if err.Error() != expectedMsg {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 08 10:53:39 UTC 2023 - 22.5K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KDocReferenceResolver.kt
} val goBackSteps = fullFqName.pathSegments().size - selectedFqName.pathSegments().size check(goBackSteps > 0) { "Selected FqName ($selectedFqName) should be smaller than the whole FqName ($fullFqName)" } return fullSymbolsResolved.mapNotNullTo(mutableSetOf()) { findParentSymbol(it, goBackSteps, selectedFqName) } } } /**
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 04 08:26:19 UTC 2024 - 22.3K bytes - Viewed (0) -
pkg/apis/core/validation/validation.go
// // This assumes the OS of the apiserver and the nodes are the same. The same check should be done // on the node to ensure there are no backsteps. func validatePathNoBacksteps(targetPath string, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} parts := strings.Split(filepath.ToSlash(targetPath), "/") for _, item := range parts {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 349.5K bytes - Viewed (0) -
pkg/apis/core/validation/validation_test.go
Path: "/foo", Type: newHostPathType(string(core.HostPathDirectory)), }, }, StorageClassName: "-invalid-", }), }, "bad-hostpath-volume-backsteps": { isExpectedFailure: true, volume: testVolume("foo", "", core.PersistentVolumeSpec{ Capacity: core.ResourceList{ core.ResourceName(core.ResourceStorage): resource.MustParse("10G"), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 857.7K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.7.md
* PodSpecs containing parent directory references such as `..` (for example, `../bar`) in hostPath volume path or in volumeMount subpaths must be changed to the simple absolute path. Backsteps `..` are no longer allowed.([#47290](https://github.com/kubernetes/kubernetes/pull/47290), [@jhorwit2](https://github.com/jhorwit2)). ### API Machinery
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 05 13:44:43 UTC 2022 - 308.7K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.8.md
* Paths containing backsteps (for example, "../bar") are no longer allowed in hostPath volume paths, or in volumeMount subpaths ([#47290](https://github.com/kubernetes/kubernetes/pull/47290), [@jhorwit2](https://github.com/jhorwit2))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 20 15:45:02 UTC 2024 - 312.2K bytes - Viewed (0) -
src/embed/embed.go
if !fs.ValidPath(name) { // The compiler should never emit a file with an invalid name, // so this check is not strictly necessary (if name is invalid, // we shouldn't find a match below), but it's a good backstop anyway. return nil } if name == "." { return dotFile } if f.files == nil { return nil } // Binary search to find where name would be in the list,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:42:51 UTC 2024 - 13.5K bytes - Viewed (0) -
pkg/apis/flowcontrol/validation/validation_test.go
}, expectedErrors: field.ErrorList{field.Forbidden(field.NewPath("spec").Child("limited").Child("limitResponse").Child("queuing"), "must be nil if limited.limitResponse.type is not Limited")}, }, { name: "wrong backstop spec should fail", priorityLevelConfiguration: &flowcontrol.PriorityLevelConfiguration{ ObjectMeta: metav1.ObjectMeta{ Name: flowcontrol.PriorityLevelConfigurationNameCatchAll, }, Spec: badSpec, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 22:22:51 UTC 2023 - 54.7K bytes - Viewed (0)