ovl: do operations on underlying file system in mounter's context 83/307883/1 accepted/tizen/unified/20240315.032957
authorVivek Goyal <vgoyal@redhat.com>
Fri, 1 Jul 2016 20:34:28 +0000 (16:34 -0400)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 14 Mar 2024 02:20:57 +0000 (11:20 +0900)
commita581b831ee279784b8fab6bd2c02b612cfddd38e
tree9d30bad8ca2a343e51f0bafef0df8c93b53f688e
parent0dc9e711843a064686b8448e83ef091658e8776c
ovl: do operations on underlying file system in mounter's context

Given we are now doing checks both on overlay inode as well underlying
inode, we should be able to do checks and operations on underlying file
system using mounter's context.

So modify all operations to do checks/operations on underlying dentry/inode
in the context of mounter.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
[sw0312.kim: backport upstream commit 1175b6b8d96331676f1d436b089b965807f23b4a to resolve overlayfs smack deny issue]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I550e2ed212f8a3a578cc48430556fa2c7e1eb3a2
fs/overlayfs/dir.c
fs/overlayfs/inode.c
fs/overlayfs/super.c