summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/mount/unprivileged-remount-test.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2014-12-05 19:36:04 -0600
committerLuis Henriques <luis.henriques@canonical.com>2015-01-15 10:43:59 +0000
commit8deb663430d900c45acd9605da9a9cd086ed93b0 (patch)
treee99ef133326800e6c7d6e0f2fd4a058c541706f0 /tools/testing/selftests/mount/unprivileged-remount-test.c
parentb3993755af2f586bb897ed3f7bbe12649ebbaf8a (diff)
userns: Allow setting gid_maps without privilege when setgroups is disabled
commit 66d2f338ee4c449396b6f99f5e75cd18eb6df272 upstream. Now that setgroups can be disabled and not reenabled, setting gid_map without privielge can now be enabled when setgroups is disabled. This restores most of the functionality that was lost when unprivileged setting of gid_map was removed. Applications that use this functionality will need to check to see if they use setgroups or init_groups, and if they don't they can be fixed by simply disabling setgroups before writing to gid_map. Reviewed-by: Andy Lutomirski <luto@amacapital.net> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'tools/testing/selftests/mount/unprivileged-remount-test.c')
0 files changed, 0 insertions, 0 deletions