Security/VFS: re-export security_inode_permission symbol
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 13 Jan 2009 03:15:49 +0000 (22:15 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Wed, 20 May 2009 21:00:05 +0000 (17:00 -0400)
Unionfs needs it because it has to do everything in there, but skip the
EROFS test (so copyup can be triggered).  There's no easy way to execute
parts of security_inode_permission() without copying  and duplicating much
of its functionality, so exporting the symbol seems the simplest.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
security/security.c

index c0acfa7177e5d1a01d19375f94bfa1ff819637a3..dad318376c64de0d90f87e506bc304ce2adc0eed 100644 (file)
@@ -448,6 +448,7 @@ int security_inode_permission(struct inode *inode, int mask)
                return 0;
        return security_ops->inode_permission(inode, mask);
 }
+EXPORT_SYMBOL(security_inode_permission);
 
 int security_inode_setattr(struct dentry *dentry, struct iattr *attr)
 {