lkml.org 
[lkml]   [2018]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v5 5/7] proc: instantiate only pids that we can ptrace on 'limit_pids=1' mount option
On Fri, May 11, 2018 at 2:46 AM Alexey Gladkov <gladkov.alexey@gmail.com>
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

\
 
 \ /
  Last update: 2018-05-11 18:46    [W:0.058 / U:6.684 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site