Merge tag 'v3.10.104' into update
This is the 3.10.104 stable release
This commit is contained in:
@@ -292,7 +292,7 @@ int yama_ptrace_access_check(struct task_struct *child,
|
||||
return rc;
|
||||
|
||||
/* require ptrace target be a child of ptracer on attach */
|
||||
if (mode == PTRACE_MODE_ATTACH) {
|
||||
if (mode & PTRACE_MODE_ATTACH) {
|
||||
switch (ptrace_scope) {
|
||||
case YAMA_SCOPE_DISABLED:
|
||||
/* No additional restrictions. */
|
||||
@@ -318,7 +318,7 @@ int yama_ptrace_access_check(struct task_struct *child,
|
||||
}
|
||||
}
|
||||
|
||||
if (rc) {
|
||||
if (rc && (mode & PTRACE_MODE_NOAUDIT) == 0) {
|
||||
printk_ratelimited(KERN_NOTICE
|
||||
"ptrace of pid %d was attempted by: %s (pid %d)\n",
|
||||
child->pid, current->comm, current->pid);
|
||||
|
||||
Reference in New Issue
Block a user