- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for safemkdir (0.11 sec)
-
pkg/volume/util/subpath/subpath_linux.go
if parentFD != -1 { if err = syscall.Close(parentFD); err != nil { klog.V(4).Infof("Closing FD %v failed for safemkdir(%v): %v", parentFD, pathname, err) } } if childFD != -1 { if err = syscall.Close(childFD); err != nil { klog.V(4).Infof("Closing FD %v failed for safemkdir(%v): %v", childFD, pathname, err) } } }() currentPath := fullExistingPath
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 12 14:09:11 UTC 2022 - 21.4K bytes - Viewed (0) -
pkg/volume/util/subpath/subpath.go
// CleanSubPaths is a fake implementation of CleanSubPaths. It is a noop func (fs *FakeSubpath) CleanSubPaths(podDir string, volumeName string) error { return nil } // SafeMakeDir is a fake implementation of SafeMakeDir. It is a noop func (fs *FakeSubpath) SafeMakeDir(pathname string, base string, perm os.FileMode) error { return nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 27 02:59:53 UTC 2019 - 3.3K bytes - Viewed (0) -
pkg/volume/util/subpath/subpath_unsupported.go
return subPath.Path, nil, errUnsupported } func (sp *subpath) CleanSubPaths(podDir string, volumeName string) error { return errUnsupported } func (sp *subpath) SafeMakeDir(pathname string, base string, perm os.FileMode) error { return errUnsupported
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 1.5K bytes - Viewed (0) -
pkg/volume/util/subpath/subpath_windows.go
// No bind-mounts for subpaths are necessary on Windows func (sp *subpath) CleanSubPaths(podDir string, volumeName string) error { return nil } // SafeMakeDir makes sure that the created directory does not escape given base directory mis-using symlinks. func (sp *subpath) SafeMakeDir(subdir string, base string, perm os.FileMode) error { realBase, err := evalSymlink(base) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 12:57:11 UTC 2023 - 12.5K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods.go
// Make extra care not to escape the volume! perm, err := hu.GetMode(volumePath) if err != nil { return nil, cleanupAction, err } if err := subpather.SafeMakeDir(subPath, volumePath, perm); err != nil { // Don't pass detailed error back to the user because it could give information about host filesystem
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 101.2K bytes - Viewed (0)