From e1a7ec71083982ba2e988def5aea91538bea50fc 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 4ba6d4cc061..093d8b44f63 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, 0); } +EXPORT_SYMBOL(security_inode_permission); int security_inode_exec_permission(struct inode *inode, unsigned int flags) { -- 2.34.1