[PATCH 11/18] staging: gasket: always allow root open for write

Todd Poynor toddpoynor at gmail.com
Mon Jul 16 21:22:12 UTC 2018


On Sat, Jul 14, 2018 at 1:25 AM, Dmitry Torokhov <dtor at chromium.org> wrote:
> On Sat, Jul 14, 2018 at 8:58 AM Todd Poynor <toddpoynor at gmail.com> wrote:
>>
>> From: Todd Poynor <toddpoynor at google.com>
>>
>> Always allow root to open device for writing.
>>
>> Drop special-casing of ioctl permissions for root vs. owner.
>>
>> Reported-by: Dmitry Torokhov <dtor at chromium.org>
>> Signed-off-by: Zhongze Hu <frankhu at chromium.org>
>> Signed-off-by: Todd Poynor <toddpoynor at google.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.

Thanks, I'll add that to the list.

>
> Reviewed-by: Dmitry Torokhov <dtor at chromium.org>
>
> Thanks,
> Dmitry



-- 
Todd


More information about the devel mailing list