]>
Commit | Line | Data |
---|---|---|
00e5a55c BS |
1 | From: Jeff Mahoney <jeffm@suse.com> |
2 | Subject: [PATCH] LSM: Export security_inode_permission for aufs | |
3 | Patch-mainline: Never | |
4 | References: 356902 | |
5 | ||
6 | In order for aufs to work with AppArmor, it needs to be able to call | |
7 | security_inode_permission itself. | |
8 | ||
9 | This patch is a _workaround_ since the author will need to find a | |
10 | mainline-compatible solution moving forward. | |
11 | ||
12 | Signed-off-by: Jeff Mahoney <jeffm@suse.com> | |
13 | --- | |
14 | security/security.c | 1 + | |
15 | 1 file changed, 1 insertion(+) | |
16 | ||
17 | --- a/security/security.c | |
18 | +++ b/security/security.c | |
19 | @@ -415,6 +415,7 @@ int security_inode_mknod(struct inode *d | |
20 | return 0; | |
21 | return security_ops->inode_mknod(dir, dentry, mnt, mode, dev); | |
22 | } | |
23 | +EXPORT_SYMBOL_GPL(security_inode_permission); | |
24 | ||
25 | int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry, | |
26 | struct vfsmount *old_mnt, struct inode *new_dir, |