summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/dir.c
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@redhat.com>2016-07-01 16:34:27 -0400
committerMiklos Szeredi <mszeredi@redhat.com>2016-07-29 12:05:23 +0200
commitc0ca3d70e8d3cf81e2255a217f7ca402f5ed0862 (patch)
tree8f1a2e9730bdd327513e31b500da20ad4f1ad36c /fs/overlayfs/dir.c
parent39a25b2b37629f65e5a1eba1b353d0b47687c2ca (diff)
downloadlinux-c0ca3d70e8d3cf81e2255a217f7ca402f5ed0862.tar.bz2
ovl: modify ovl_permission() to do checks on two inodes
Right now ovl_permission() calls __inode_permission(realinode), to do permission checks on real inode and no checks are done on overlay inode. Modify it to do checks both on overlay inode as well as underlying inode. Checks on overlay inode will be done with the creds of calling task while checks on underlying inode will be done with the creds of mounter. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/dir.c')
0 files changed, 0 insertions, 0 deletions