staging: gasket: core: allow root access based on user namespace
authorTodd Poynor <toddpoynor@google.com>
Sun, 29 Jul 2018 19:36:37 +0000 (12:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Jul 2018 08:54:50 +0000 (10:54 +0200)
commitf9a4963019291b8ea7f2bb473b2caa7ff2238633
tree6eee39456669ed74c114f33dff5a3c6a9acb500f
parentdd9d1502feea3c23d412f289aad79e1d4e86d45d
staging: gasket: core: allow root access based on user namespace

Use user namespace to determine whether gasket device file opener is
root, allowing root access to containers, if necessary.

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