projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7df818b
)
apparmor_path_truncate(): path->mnt is never NULL
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 25 Mar 2016 18:24:49 +0000
(14:24 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 28 Mar 2016 04:47:23 +0000
(
00:47
-0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
security/apparmor/lsm.c
patch
|
blob
|
blame
|
history
diff --git
a/security/apparmor/lsm.c
b/security/apparmor/lsm.c
index 83e9c3c2cfc807b9196687c55af77bf0fdb4b04d..21dae6070bb9dda82818ba0eac83977f4cbd091e 100644
(file)
--- a/
security/apparmor/lsm.c
+++ b/
security/apparmor/lsm.c
@@
-275,7
+275,7
@@
static int apparmor_path_truncate(const struct path *path)
d_backing_inode(path->dentry)->i_mode
};
- if (!
path->mnt || !
mediated_filesystem(path->dentry))
+ if (!mediated_filesystem(path->dentry))
return 0;
return common_perm(OP_TRUNC, path, MAY_WRITE | AA_MAY_META_WRITE,