summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/file.c
diff options
context:
space:
mode:
authorTiger Yang <tiger.yang@oracle.com>2008-11-14 04:17:18 +0100
committerMark Fasheh <mfasheh@suse.com>2009-01-05 17:34:20 +0100
commit23fc2702bea686569281708ad519b41a11d0a2f4 (patch)
treea567f38647047836332d1cfc17d7ad0be05c55ef /fs/ocfs2/file.c
parentocfs2: add POSIX ACL API (diff)
downloadlinux-23fc2702bea686569281708ad519b41a11d0a2f4.tar.xz
linux-23fc2702bea686569281708ad519b41a11d0a2f4.zip
ocfs2: add ocfs2_check_acl
This function is used to enhance permission checking with POSIX ACLs. Signed-off-by: Tiger Yang <tiger.yang@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to '')
-rw-r--r--fs/ocfs2/file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index 360549161e20..7bad7d9b9a2c 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -56,6 +56,7 @@
#include "suballoc.h"
#include "super.h"
#include "xattr.h"
+#include "acl.h"
#include "buffer_head_io.h"
@@ -1035,7 +1036,7 @@ int ocfs2_permission(struct inode *inode, int mask)
goto out;
}
- ret = generic_permission(inode, mask, NULL);
+ ret = generic_permission(inode, mask, ocfs2_check_acl);
ocfs2_inode_unlock(inode, 0);
out: