From: Erez Zadok Date: Tue, 13 Jan 2009 03:16:46 +0000 (-0500) Subject: Security/VFS: re-export security_inode_permission symbol X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=ad7fda5be0677024492d95e4b71e95958677256e;p=unionfs-3.17.y.git Security/VFS: re-export security_inode_permission symbol 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 --- diff --git a/security/security.c b/security/security.c index e41b1a8d7644..3b9b27ca4a88 100644 --- a/security/security.c +++ b/security/security.c @@ -571,6 +571,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) {