Thread (5 messages) flat view 5 messages, 3 authors, 2018-05-14

[PATCH v5 5/7] proc: instantiate only pids that we can ptrace on 'limit_pids=1' mount option

From: torvalds@linux-foundation.org (Linus Torvalds)
Date: 2018-05-11 16:45:45
Also in: linux-api, linux-fsdevel, lkml

On Fri, May 11, 2018 at 2:46 AM Alexey Gladkov [off-list ref]
wrote:
+       /* Limit procfs to only ptracable tasks */
+       if (limit_pids == PROC_LIMIT_PIDS_PTRACE) {
+               cond_resched();
+               if (!has_pid_permissions(fs_info, task,
HIDEPID_NO_ACCESS))
+                       goto out_put_task;
+       }
Where did that "cond_resched()" come from? That doesn't seem to make a lot
of sense.

                    Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help