4
4
## DP: Disable security_inode_* calls to work with Kernel 2.6.24
7
diff -urNad aufs-0+20071211~/fs/aufs/i_op.c aufs-0+20071211/fs/aufs/i_op.c
8
--- aufs-0+20071211~/fs/aufs/i_op.c 2008-01-27 18:07:36.000000000 +0100
9
+++ aufs-0+20071211/fs/aufs/i_op.c 2008-01-27 18:08:28.000000000 +0100
7
Index: aufs-0+20080415/fs/aufs/i_op.c
8
===================================================================
9
--- aufs-0+20080415.orig/fs/aufs/i_op.c 2008-04-15 15:47:42.000000000 +0200
10
+++ aufs-0+20080415/fs/aufs/i_op.c 2008-04-15 15:53:22.000000000 +0200
15
16
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) || defined(CONFIG_AUFS_SEC_PERM_PATCH)
17
#ifndef CONFIG_AUFS_DLGT
18
err = security_inode_permission(h_inode, mask, fake_nd);
18
err = au_security_inode_permission(h_inode, mask, fake_nd,
20
Index: aufs-0+20080415/fs/aufs/inode.h
21
===================================================================
22
--- aufs-0+20080415.orig/fs/aufs/inode.h 2008-04-15 15:48:27.000000000 +0200
23
+++ aufs-0+20080415/fs/aufs/inode.h 2008-04-15 15:54:08.000000000 +0200
26
int au_security_inode_permission(struct inode *h_inode, int mask,
27
struct nameidata *fake_nd, int dlgt);
29
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) || defined(CONFIG_AUFS_SEC_PERM_PATCH)
31
int au_security_inode_permission(struct inode *h_inode, int mask,
32
struct nameidata *fake_nd, int dlgt)
34
Index: aufs-0+20080415/fs/aufs/i_op.c
35
===================================================================
36
--- aufs-0+20080415.orig/fs/aufs25/i_op.c 2008-04-15 15:47:42.000000000 +0200
37
+++ aufs-0+20080415/fs/aufs25/i_op.c 2008-04-15 15:53:22.000000000 +0200
43
+#if defined(CONFIG_AUFS_SEC_PERM_PATCH)
45
err = au_security_inode_permission(h_inode, mask, fake_nd,
47
Index: aufs-0+20080415/fs/aufs/inode.h
48
===================================================================
49
--- aufs-0+20080415.orig/fs/aufs25/inode.h 2008-04-15 15:48:27.000000000 +0200
50
+++ aufs-0+20080415/fs/aufs25/inode.h 2008-04-15 15:54:08.000000000 +0200
53
int au_security_inode_permission(struct inode *h_inode, int mask,
54
struct nameidata *fake_nd, int dlgt);
56
+#elif defined(CONFIG_AUFS_SEC_PERM_PATCH)
58
int au_security_inode_permission(struct inode *h_inode, int mask,
59
struct nameidata *fake_nd, int dlgt)