mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-08-03 18:05:58 -04:00
utils: enable override only for directories and files
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
fc9de46ebf
commit
7868e49da8
10
utils.c
10
utils.c
@ -240,6 +240,16 @@ override_mode (struct ovl_layer *l, int fd, const char *abs_path, const char *pa
|
|||||||
cleanup_close int cleanup_fd = -1;
|
cleanup_close int cleanup_fd = -1;
|
||||||
const char *xattr_name;
|
const char *xattr_name;
|
||||||
|
|
||||||
|
switch (st->st_mode & S_IFMT)
|
||||||
|
{
|
||||||
|
case S_IFDIR:
|
||||||
|
case S_IFREG:
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
switch (l->stat_override_mode)
|
switch (l->stat_override_mode)
|
||||||
{
|
{
|
||||||
case STAT_OVERRIDE_NONE:
|
case STAT_OVERRIDE_NONE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user