aboutsummaryrefslogtreecommitdiff
path: root/fs/overlayfs/dir.c
diff options
context:
space:
mode:
authorGravatar Vivek Goyal <vgoyal@redhat.com> 2016-07-01 16:34:26 -0400
committerGravatar Miklos Szeredi <mszeredi@redhat.com> 2016-07-29 12:05:23 +0200
commit39a25b2b37629f65e5a1eba1b353d0b47687c2ca (patch)
tree9e167746ccbd3779aefa536d4e94d9b15009be8c /fs/overlayfs/dir.c
parentovl: move some common code in a function (diff)
downloadlinux-39a25b2b37629f65e5a1eba1b353d0b47687c2ca.tar.gz
linux-39a25b2b37629f65e5a1eba1b353d0b47687c2ca.tar.bz2
linux-39a25b2b37629f65e5a1eba1b353d0b47687c2ca.zip
ovl: define ->get_acl() for overlay inodes
Now we are planning to do DAC permission checks on overlay inode itself. And to make it work, we will need to make sure we can get acls from underlying inode. So define ->get_acl() for overlay inodes and this in turn calls into underlying filesystem to get acls, if any. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/dir.c')
-rw-r--r--fs/overlayfs/dir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/overlayfs/dir.c b/fs/overlayfs/dir.c
index d9cdb4747f68..aa6320557196 100644
--- a/fs/overlayfs/dir.c
+++ b/fs/overlayfs/dir.c
@@ -921,4 +921,5 @@ const struct inode_operations ovl_dir_inode_operations = {
.getxattr = ovl_getxattr,
.listxattr = ovl_listxattr,
.removexattr = ovl_removexattr,
+ .get_acl = ovl_get_acl,
};