]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: modify ovl_permission() to do checks on two inodes
authorVivek Goyal <vgoyal@redhat.com>
Fri, 1 Jul 2016 20:34:27 +0000 (16:34 -0400)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 29 Jul 2016 10:05:23 +0000 (12:05 +0200)
commitcb66ed08a5c0964bac061b718c2d5c04d6efac3f
tree8f1a2e9730bdd327513e31b500da20ad4f1ad36c
parent70aa45229dabc8fc956b228a047e567f80de6a8a
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>
fs/overlayfs/inode.c