From 83a62d65b6662555074dd711eb4d1727151bd77a Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Mon, 12 Jan 2009 22:16:46 -0500 Subject: [PATCH] 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 --- security/security.c | 1 + 1 file changed, 1 insertion(+) diff --git a/security/security.c b/security/security.c index d9e15339092..46c24ed8ff9 100644 --- a/security/security.c +++ b/security/security.c @@ -520,6 +520,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) { -- 2.43.0