projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
watchdog: Orion: Fix possible null-deference in orion_wdt_probe
[cascardo/linux.git]
/
fs
/
open.c
diff --git
a/fs/open.c
b/fs/open.c
index
59071f5
..
182d866
100644
(file)
--- a/
fs/open.c
+++ b/
fs/open.c
@@
-435,7
+435,7
@@
SYSCALL_DEFINE1(chroot, const char __user *, filename)
goto dput_and_out;
error = -EPERM;
- if (!capable(CAP_SYS_CHROOT))
+ if (!
nsown_
capable(CAP_SYS_CHROOT))
goto dput_and_out;
error = security_path_chroot(&path);
if (error)