Re: [PATCH] prctl: Add PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.

From: John Stultz
Date: Fri Feb 05 2016 - 17:36:16 EST


On Fri, Feb 5, 2016 at 12:50 PM, Andrew Morton
<akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Fri, 5 Feb 2016 12:44:04 -0800 Kees Cook <keescook@xxxxxxxxxxxx> wrote:
>> Could this be exposed as a writable /proc entry instead? Like the oom_* stuff?
>
> /proc/<pid>/timer_slack_ns, guarded by ptrace_may_access(), documented
> under Documentation/? Yup, that would work. It's there for all
> architectures from day one and there is precedent. It's not as nice,
> but /proc nasties will always be with us.

Ok. I'll start working on that.

Thanks for the feedback and ideas!
-john