Disable security_inode_* calls, as they are not exported normally. Enable
them only if CONFIG_AUFS_SEC_PERM_PATCH is defined
Index: aufs-0+20081023/fs/aufs25/i_op.c
===================================================================
--- aufs-0+20081023.orig/fs/aufs25/i_op.c	2008-10-20 03:47:08.000000000 +0200
+++ aufs-0+20081023/fs/aufs25/i_op.c	2008-11-26 13:22:27.000000000 +0100
@@ -109,7 +109,7 @@
 		AuTraceErr(err);
 	}
 
-#if 1 /* todo: export? */
+#if defined(CONFIG_AUFS_SEC_PERM_PATCH) || defined (CONFIG_AUFS_DLGT) /* todo: export? */
 	if (!err)
 		err = au_security_inode_permission(h_inode, mask, NULL,
 						   dlgt);
@@ -220,7 +220,7 @@
 		AuTraceErr(err);
 	}
 
-#if 1 /* todo: export? */
+#if defined(CONFIG_AUFS_SEC_PERM_PATCH) || defined (CONFIG_AUFS_DLGT)
 	if (!err)
 		err = au_security_inode_permission(h_inode, mask, fake_nd,
 						   dlgt);
Index: aufs-0+20081023/fs/aufs25/inode.h
===================================================================
--- aufs-0+20081023.orig/fs/aufs25/inode.h	2008-10-20 03:47:08.000000000 +0200
+++ aufs-0+20081023/fs/aufs25/inode.h	2008-11-26 13:19:54.000000000 +0100
@@ -149,7 +149,7 @@
 /* dlgt.c */
 int au_security_inode_permission(struct inode *h_inode, int mask,
 				 struct nameidata *fake_nd, int dlgt);
-#else
+#elif defined(CONFIG_AUFS_SEC_PERM_PATCH)
 static inline
 int au_security_inode_permission(struct inode *h_inode, int mask,
 				 struct nameidata *fake_nd, int dlgt)
