linux/fs/overlayfs
Miklos Szeredi 5ef7bcdeec ovl: relax redirect/metacopy requirements for lower -> data redirect
Allow the special case of a redirect from a lower layer to a data layer
without having to turn on metacopy.  This makes the feature work with
userxattr, which in turn allows data layers to be usable in user
namespaces.

Minimize the risk by only enabling redirect from a single lower layer to a
data layer iff a data layer is specified.  The only way to access a data
layer is to enable this, so there's really no reason not to enable this.

This can be used safely if the lower layer is read-only and the
user.overlay.redirect xattr cannot be modified.

Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2025-04-30 10:55:27 +02:00
..
copy_up.c ovl: fix UAF in ovl_dentry_update_reval by moving dput() in ovl_link_up 2025-02-19 18:06:53 +01:00
dir.c VFS: Change vfs_mkdir() to return the dentry. 2025-03-05 11:52:50 +01:00
export.c ovl: support encoding fid from inode with no alias 2025-01-06 15:43:55 +01:00
file.c ovl: Fix nested backing file paths 2025-04-30 10:55:27 +02:00
inode.c overlayfs updates for 6.13 2024-11-22 20:55:42 -08:00
Kconfig fs: prepare for stackable filesystems backing file helpers 2023-12-23 16:35:08 +02:00
Makefile ovl: Move xattr support to new xattrs.c file 2023-10-31 00:12:59 +02:00
namei.c ovl: relax redirect/metacopy requirements for lower -> data redirect 2025-04-30 10:55:27 +02:00
overlayfs.h ovl: remove unused forward declaration 2025-04-07 11:22:49 +02:00
ovl_entry.h ovl: mark xwhiteouts directory with overlay.opaque='x' 2024-01-23 12:39:48 +02:00
params.c ovl: relax redirect/metacopy requirements for lower -> data redirect 2025-04-30 10:55:27 +02:00
params.h ovl: store and show the user provided lowerdir mount option 2023-10-31 00:13:02 +02:00
readdir.c ovl: use wrapper ovl_revert_creds() 2024-11-11 10:45:04 +01:00
super.c ovl: don't allow datadir only 2025-04-07 11:22:49 +02:00
util.c tree-wide: s/revert_creds_light()/revert_creds()/g 2024-12-02 11:25:09 +01:00
xattrs.c ovl: use wrapper ovl_revert_creds() 2024-11-11 10:45:04 +01:00