From 8d8d0562a3890d7a08db96b3e4ab4aa7a4891ae7 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 18 Oct 2007 15:50:15 -0400 Subject: [PATCH] Unionfs: security convert lsm into a static interface fix ERROR: "security_inode_permission" [fs/unionfs/unionfs.ko] undefined! ERROR: "security_file_ioctl" [fs/unionfs/unionfs.ko] undefined! Need these back. Cc: "Serge E. Hallyn" Cc: Arjan van de Ven Cc: Chris Wright Cc: James Morris Cc: Stephen Smalley Cc: Josef 'Jeff' Sipek Signed-off-by: Andrew Morton Signed-off-by: Erez Zadok --- security/security.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/security/security.c b/security/security.c index e41b1a8d7644..b84062ded966 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) { @@ -708,6 +709,7 @@ int security_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { return security_ops->file_ioctl(file, cmd, arg); } +EXPORT_SYMBOL(security_file_ioctl); static inline unsigned long mmap_prot(struct file *file, unsigned long prot) { -- 2.43.0