[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAE_wzQ8GSXb=6Jt1imJyLKSfspVnjOuYb+YOuGenr6R916G4Vw@mail.gmail.com>
Date: Sat, 14 Jul 2018 11:25:47 +0300
From: Dmitry Torokhov <dtor@...omium.org>
To: toddpoynor@...il.com
Cc: rspringer@...gle.com, jnjoseph@...gle.com, benchan@...omium.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
frankhu@...omium.org, Simon Que <sque@...omium.org>,
Guenter Roeck <groeck@...omium.org>,
devel@...verdev.osuosl.org, lkml <linux-kernel@...r.kernel.org>,
toddpoynor@...gle.com
Subject: Re: [PATCH 11/18] staging: gasket: always allow root open for write
On Sat, Jul 14, 2018 at 8:58 AM Todd Poynor <toddpoynor@...il.com> wrote:
>
> From: Todd Poynor <toddpoynor@...gle.com>
>
> Always allow root to open device for writing.
>
> Drop special-casing of ioctl permissions for root vs. owner.
>
> Reported-by: Dmitry Torokhov <dtor@...omium.org>
> Signed-off-by: Zhongze Hu <frankhu@...omium.org>
> Signed-off-by: Todd Poynor <toddpoynor@...gle.com>
I think this patch is good as is, but as a followup you should create
a patch that supports user namespaces, i.e. replaces
capable(CAP_SYS_ADMIN) with ns_capable(...) in gasket_open() so you
can allow containers to control the device, if necessary.
Reviewed-by: Dmitry Torokhov <dtor@...omium.org>
Thanks,
Dmitry
Powered by blists - more mailing lists