2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 09:13:55 +08:00
linux-next/fs/overlayfs
Miklos Szeredi 8d3095f4ad ovl: default permissions
Add mount option "default_permissions" to alter the way permissions are
calculated.

Without this option and prior to this patch permissions were calculated by
underlying lower or upper filesystem.

With this option the permissions are calculated by overlayfs based on the
file owner, group and mode bits.

This has significance for example when a read-only exported NFS filesystem
is used as a lower layer.  In this case the underlying NFS filesystem will
reply with EROFS, in which case all we know is that the filesystem is
read-only.  But that's not what we are interested in, we are interested in
whether the access would be allowed if the filesystem wasn't read-only; the
server doesn't tell us that, and would need updating at various levels,
which doesn't seem practicable.

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
2015-10-12 17:11:44 +02:00
..
copy_up.c ovl: fix dentry reference leak 2015-10-12 15:56:20 +02:00
dir.c ovl: mount read-only if workdir can't be created 2015-05-19 14:30:12 +02:00
inode.c ovl: default permissions 2015-10-12 17:11:44 +02:00
Kconfig ovl: rename filesystem type to "overlay" 2014-11-20 16:39:59 +01:00
Makefile ovl: rename filesystem type to "overlay" 2014-11-20 16:39:59 +01:00
overlayfs.h ovl: default permissions 2015-10-12 17:11:44 +02:00
readdir.c ovl: lookup whiteouts outside iterate_dir() 2015-06-22 13:53:48 +02:00
super.c ovl: default permissions 2015-10-12 17:11:44 +02:00