mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-10 07:44:54 -04:00
main: stop ino lookup without an open fd
stop the lookup for the dev/ino if there is not an ino open as it also prevents reading the origin xattr. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
da13832baa
commit
e63c9b133d
4
main.c
4
main.c
@ -1259,6 +1259,7 @@ make_ovl_node (struct ovl_data *lo, const char *path, struct ovl_layer *layer, c
|
|||||||
}
|
}
|
||||||
ret->last_layer = it;
|
ret->last_layer = it;
|
||||||
}
|
}
|
||||||
|
has_origin = false;
|
||||||
goto no_fd;
|
goto no_fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1276,7 +1277,10 @@ make_ovl_node (struct ovl_data *lo, const char *path, struct ovl_layer *layer, c
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (stat_only)
|
if (stat_only)
|
||||||
|
{
|
||||||
|
has_origin = false;
|
||||||
goto no_fd;
|
goto no_fd;
|
||||||
|
}
|
||||||
|
|
||||||
s = safe_read_xattr (&val, fd, PRIVILEGED_ORIGIN_XATTR, PATH_MAX);
|
s = safe_read_xattr (&val, fd, PRIVILEGED_ORIGIN_XATTR, PATH_MAX);
|
||||||
if (s > 0)
|
if (s > 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user