projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Yama: handle 32-bit userspace prctl
[cascardo/linux.git]
/
security
/
yama
/
yama_lsm.c
diff --git
a/security/yama/yama_lsm.c
b/security/yama/yama_lsm.c
index
9ca43c1
..
01d3b44
100644
(file)
--- a/
security/yama/yama_lsm.c
+++ b/
security/yama/yama_lsm.c
@@
-143,7
+143,7
@@
int yama_task_prctl(int option, unsigned long arg2, unsigned long arg3,
if (arg2 == 0) {
yama_ptracer_del(NULL, myself);
rc = 0;
- } else if (arg2 == PR_SET_PTRACER_ANY) {
+ } else if (arg2 == PR_SET_PTRACER_ANY
|| (int)arg2 == -1
) {
rc = yama_ptracer_add(NULL, myself);
} else {
struct task_struct *tracer;