Security/VFS: re-export security_inode_permission symbol
authorErez Zadok <ezk@cs.sunysb.edu>
Tue, 13 Jan 2009 03:16:46 +0000 (22:16 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Wed, 6 Jan 2010 03:45:11 +0000 (22:45 -0500)
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 dc7674fbfc7a4a6fcfb132bc974f2c9480b90922..aa3f061a3f5e1ad4d012a0ea8f92992a9039bfb0 100644 (file)
@@ -519,6 +519,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)
 {