linux_dsm_epyc7002/fs/overlayfs
Konstantin Khlebnikov 51f8f3c4e2 ovl: drop CAP_SYS_RESOURCE from saved mounter's credentials
If overlay was mounted by root then quota set for upper layer does not work
because overlay now always use mounter's credentials for operations.
Also overlay might deplete reserved space and inodes in ext4.

This patch drops capability SYS_RESOURCE from saved credentials.
This affects creation new files, whiteouts, and copy-up operations.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Fixes: 1175b6b8d9 ("ovl: do operations on underlying file system in mounter's context")
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2017-02-07 15:47:14 +01:00
..
copy_up.c ovl: concurrent copy up of regular files 2017-02-07 15:47:14 +01:00
dir.c ovl: clean up kstat usage 2016-12-16 11:02:57 +01:00
inode.c Merge uncontroversial parts of branch 'readlink' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs 2016-12-17 19:16:12 -08:00
Kconfig ovl: allow redirect_dir to default to "on" 2016-12-16 11:02:57 +01:00
Makefile ovl: split super.c 2016-12-16 11:02:56 +01:00
namei.c ovl: lookup redirects 2016-12-16 11:02:56 +01:00
overlayfs.h ovl: introduce copy up waitqueue 2017-02-07 15:47:14 +01:00
ovl_entry.h ovl: introduce copy up waitqueue 2017-02-07 15:47:14 +01:00
readdir.c
super.c ovl: drop CAP_SYS_RESOURCE from saved mounter's credentials 2017-02-07 15:47:14 +01:00
util.c ovl: introduce copy up waitqueue 2017-02-07 15:47:14 +01:00