projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
f2fs: set ->owner for debugfs status file's file_operations
[firefly-linux-kernel-4.4.55.git]
/
fs
/
exec.c
diff --git
a/fs/exec.c
b/fs/exec.c
index b06623a9347f4f206fb466c80574ec4bdd7d13fa..4040d7b173c04462f0f8740c9dbd66d7e9b0f3be 100644
(file)
--- a/
fs/exec.c
+++ b/
fs/exec.c
@@
-1254,7
+1254,7
@@
static void check_unsafe_exec(struct linux_binprm *bprm)
unsigned n_fs;
if (p->ptrace) {
- if (p
->ptrace & PT_PTRACE_CAP
)
+ if (p
tracer_capable(p, current_user_ns())
)
bprm->unsafe |= LSM_UNSAFE_PTRACE_CAP;
else
bprm->unsafe |= LSM_UNSAFE_PTRACE;