Centos-kernel-stream-10/fs/overlayfs
Julio Faracco 41fc9dfabd Merge: overlayfs: allow redirect/metacopy in a user namespace
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/1012

JIRA: https://issues.redhat.com/browse/RHEL-82858

ovl: don't require "metacopy=on" for "verity"

This allows the "verity" mount option to be used with "userxattr" data-only
layer(s).

Also it allows dropping the "metacopy=on" option when the "datadir+" option
is to be used.  This cleanly separates the two features that have been
lumped together under "metacopy=on":

 - data-redirect: data access is redirected to the data-only layer

 - meta-copy: copy up metadata only if possible

Previous patches made sure that with "userxattr" metacopy only works in the
lower -> data scenario.

In this scenario the lower (metadata) layer must be secured against
tampering, in which case the verity checksums contained in this layer can
ensure integrity of data even in the case of an untrusted data layer.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>

Approved-by: Carlos Maiolino <cmaiolino@redhat.com>
Approved-by: David Howells <dhowells@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>

Merged-by: Julio Faracco <jfaracco@redhat.com>
2025-06-17 23:46:42 -03:00
..
Kconfig fs: prepare for stackable filesystems backing file helpers 2023-12-23 16:35:08 +02:00
Makefile
copy_up.c ovl: fix UAF in ovl_dentry_update_reval by moving dput() in ovl_link_up 2025-05-26 08:31:46 +00:00
dir.c ovl: fix copy-up in tmpfile 2024-05-28 10:06:55 +02:00
export.c ovl: support encoding fid from inode with no alias 2025-02-03 14:35:24 +01:00
file.c fs: pass offset and result to backing_file end_write() callback 2024-10-16 13:17:45 +02:00
inode.c fs: Simplify getattr interface function checking AT_GETATTR_NOSEC flag 2025-05-21 18:17:33 +08:00
namei.c ovl: relax redirect/metacopy requirements for lower -> data redirect 2025-06-06 12:51:31 +02:00
overlayfs.h ovl: remove unused forward declaration 2025-06-06 12:49:21 +02:00
ovl_entry.h ovl: mark xwhiteouts directory with overlay.opaque='x' 2024-01-23 12:39:48 +02:00
params.c ovl: don't require "metacopy=on" for "verity" 2025-06-06 12:52: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: mark xwhiteouts directory with overlay.opaque='x' 2024-01-23 12:39:48 +02:00
super.c ovl: don't allow datadir only 2025-06-06 12:45:43 +02:00
util.c kernel_file_open(): get rid of inode argument 2024-04-15 16:03:24 -04:00
xattrs.c ovl: Support escaped overlay.* xattrs 2023-10-31 00:12:59 +02:00