Partially addresses POSIX test failures in [1] due to the config setting being
false by default.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=
1480182#c6
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
08b077338cba1250c36232f91c708d189326bbb6)
}
#define GET_GROUPS(perms, req) { \
- if (cfuse->client->cct->_conf->fuse_set_user_groups) { \
+ if (g_conf->get_val<bool>("fuse_set_user_groups")) { \
gid_t *gids = NULL; \
int count = getgroups(req, &gids); \
perms.init_gids(gids, count); \
OPTION(fuse_multithreaded, OPT_BOOL)
OPTION(fuse_require_active_mds, OPT_BOOL) // if ceph_fuse requires active mds server
OPTION(fuse_syncfs_on_mksnap, OPT_BOOL)
-OPTION(fuse_set_user_groups, OPT_BOOL) // if ceph_fuse fills in group lists or not
OPTION(client_try_dentry_invalidate, OPT_BOOL) // the client should try to use dentry invaldation instead of remounting, on kernels it believes that will work for
OPTION(client_die_on_failed_remount, OPT_BOOL)
.set_description(""),
Option("fuse_set_user_groups", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
- .set_default(false)
- .set_description(""),
+ .set_default(true)
+ .set_description("check for ceph-fuse to consider supplementary groups for permissions"),
Option("client_try_dentry_invalidate", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
.set_default(true)