lkml.org 
[lkml]   [2017]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] ptrace: correctly indent return statement
Date
This has been bugging me the whole time I read through that code.
Enough so to send a patch for this trivial thing.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
---
kernel/ptrace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index 84b1367935e4..374a0d4fd022 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -326,7 +326,7 @@ static int __ptrace_may_access(struct task_struct *task, unsigned int mode)
if (mm &&
((get_dumpable(mm) != SUID_DUMP_USER) &&
!ptrace_has_cap(mm->user_ns, mode)))
- return -EPERM;
+ return -EPERM;

return security_ptrace_access_check(task, mode);
}
--
2.14.1
\
 
 \ /
  Last update: 2017-12-21 08:16    [W:2.156 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site