staging: gasket: always allow root open for write
authorTodd Poynor <toddpoynor@google.com>
Fri, 20 Jul 2018 03:49:16 +0000 (20:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Jul 2018 06:50:35 +0000 (08:50 +0200)
commited74277bd80a47ec552ccf3581583421c3a4df5d
treec9e4eb90d95b4e1d08fcc7e092884ac006ec9dc5
parent563f3bb51f59e288879c099b2e8ee1496b7c3234
staging: gasket: always allow root open for write

Always allow root to open device for writing.

Drop special-casing of ioctl permissions for root vs. owner.

Convert to bool types as appropriate.

Reported-by: Dmitry Torokhov <dtor@chromium.org>
Signed-off-by: Zhongze Hu <frankhu@chromium.org>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/apex_driver.c
drivers/staging/gasket/gasket_core.c
drivers/staging/gasket/gasket_ioctl.c