summaryrefslogtreecommitdiff
path: root/fs/ecryptfs
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@redhat.com>2016-09-06 17:40:32 (GMT)
committerMiklos Szeredi <mszeredi@redhat.com>2016-09-19 14:50:59 (GMT)
commit8eac98b8beb4711c4ab61822cac077fd6660e820 (patch)
tree00f99d86265b7bae9c622c90fa4b72f0c1f6e788 /fs/ecryptfs
parent2b6bc7f48d34a6043915beddbf53b981603737c8 (diff)
downloadlinux-8eac98b8beb4711c4ab61822cac077fd6660e820.tar.xz
ovl: during copy up, switch to mounter's creds early
Now, we have the notion that copy up of a file is done with the creds of mounter of overlay filesystem (as opposed to task). Right now before we switch creds, we do some vfs_getattr() operations in the context of task and that itself can fail. We should do that getattr() using the creds of mounter instead. So this patch switches to mounter's creds early during copy up process so that even vfs_getattr() is done with mounter's creds. Do not call revert_creds() unless we have already called ovl_override_creds(). [Reported by Arnd Bergmann] Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/ecryptfs')
0 files changed, 0 insertions, 0 deletions