We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b06dcfb commit 0043004Copy full SHA for 0043004
1 file changed
mount/service.go
@@ -50,6 +50,11 @@ var SysfsMounts = []string{
50
51
// IsSysboxfsMount checks if the given path is at or under a sysbox-fs mount
52
func IsSysboxfsMount(path string) bool {
53
+
54
+ // TODO: don't just check by path name; check that the given path is in fact
55
+ // on a sysbox-fs managed mount. This likely requires dispatching an nsenter
56
+ // agent to the container's mount ns to perform the check.
57
58
for _, mountPath := range ProcfsMounts {
59
if strings.HasPrefix(path, mountPath+"/") || path == mountPath {
60
return true
0 commit comments