diff options
Diffstat (limited to 'security/yama')
-rw-r--r-- | security/yama/yama_lsm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/yama/yama_lsm.c b/security/yama/yama_lsm.c index 9ca43c1ea630..01d3b44b62c1 100644 --- 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, | |||
143 | if (arg2 == 0) { | 143 | if (arg2 == 0) { |
144 | yama_ptracer_del(NULL, myself); | 144 | yama_ptracer_del(NULL, myself); |
145 | rc = 0; | 145 | rc = 0; |
146 | } else if (arg2 == PR_SET_PTRACER_ANY) { | 146 | } else if (arg2 == PR_SET_PTRACER_ANY || (int)arg2 == -1) { |
147 | rc = yama_ptracer_add(NULL, myself); | 147 | rc = yama_ptracer_add(NULL, myself); |
148 | } else { | 148 | } else { |
149 | struct task_struct *tracer; | 149 | struct task_struct *tracer; |