[PATCH] loop: properly observe rotational flag of underlying device

2019-02-12 Thread Benjamin Gordon
Grignou Signed-off-by: Benjamin Gordon Reviewed-by: Guenter Roeck --- This is a resend of Holger's original patch from https://lkml.org/lkml/2015/11/11/288 with the _unlocked functions updated. We keep running into the same problem on Chrome OS that this originally solved; any chance it can go

[PATCH v2] proc: use ns_capable instead of capable for timerslack_ns

2018-10-30 Thread Benjamin Gordon
, it should also be able to adjust timerslack_ns. Signed-off-by: Benjamin Gordon Cc: John Stultz Cc: "Eric W. Biederman" Cc: Kees Cook Cc: "Serge E. Hallyn" Cc: Thomas Gleixner Cc: Arjan van de Ven Cc: Oren Laadan Cc: Ruchi Kandoi Cc: Rom Lemarchand Cc: Todd Kjos Cc: C

[PATCH v2] proc: use ns_capable instead of capable for timerslack_ns

2018-10-30 Thread Benjamin Gordon
, it should also be able to adjust timerslack_ns. Signed-off-by: Benjamin Gordon Cc: John Stultz Cc: "Eric W. Biederman" Cc: Kees Cook Cc: "Serge E. Hallyn" Cc: Thomas Gleixner Cc: Arjan van de Ven Cc: Oren Laadan Cc: Ruchi Kandoi Cc: Rom Lemarchand Cc: Todd Kjos Cc: C

Re: [PATCH] proc: use ns_capable instead of capable for timerslack_ns

2018-10-30 Thread Benjamin Gordon
On Thu, Oct 25, 2018 at 01:56:27PM -0500, Eric W. Biederman wrote: > > Access to timerslack_ns is controlled by a process having CAP_SYS_NICE > > in its effective capability set, but the current check looks in the root > > namespace instead of the process' user namespace. Since a process is > >

Re: [PATCH] proc: use ns_capable instead of capable for timerslack_ns

2018-10-30 Thread Benjamin Gordon
On Thu, Oct 25, 2018 at 01:56:27PM -0500, Eric W. Biederman wrote: > > Access to timerslack_ns is controlled by a process having CAP_SYS_NICE > > in its effective capability set, but the current check looks in the root > > namespace instead of the process' user namespace. Since a process is > >

Re: [PATCH] proc: use ns_capable instead of capable for timerslack_ns

2018-10-25 Thread Benjamin Gordon
> allowed to do other activities controlled by CAP_SYS_NICE inside a > namespace, it should also be able to adjust timerslack_ns. > > Signed-off-by: Benjamin Gordon > Cc: John Stultz > Cc: Kees Cook > Cc: "Serge E. Hallyn" > Cc: Thomas Gleixner > Cc: Ar

Re: [PATCH] proc: use ns_capable instead of capable for timerslack_ns

2018-10-25 Thread Benjamin Gordon
> allowed to do other activities controlled by CAP_SYS_NICE inside a > namespace, it should also be able to adjust timerslack_ns. > > Signed-off-by: Benjamin Gordon > Cc: John Stultz > Cc: Kees Cook > Cc: "Serge E. Hallyn" > Cc: Thomas Gleixner > Cc: Ar