]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit127fd3b70855fccaec69f70b975f9250d46f2d1c
tree6eee39456669ed74c114f33dff5a3c6a9acb500f
parent45a10dbbe694d7db5157fd023335363f7cdb7e90
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