From: Greg Farnum Date: Wed, 29 Jun 2016 00:02:42 +0000 (-0700) Subject: client: add pick_my_perms() function for implementers X-Git-Tag: v11.0.1~36^2~99 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=990dd5e95debdbc3ca3c2ca751df05347970c128;p=ceph.git client: add pick_my_perms() function for implementers We need to get rid of the internal uid/gid selection and switch to permission-checking that handles multiple groups -- while also preserving the client_mount_(uid|gid) config params. So expose a function which can be called externally that replicates our current uid/gid selection, but uses our new UserPerm struct. Signed-off-by: Greg Farnum --- diff --git a/src/client/Client.h b/src/client/Client.h index 7119223d24b8..d3ef2d5c2129 100644 --- a/src/client/Client.h +++ b/src/client/Client.h @@ -302,6 +302,10 @@ class Client : public Dispatcher, public md_config_obs_t { public: void tick(); + UserPerm pick_my_perms() { + return UserPerm(get_uid(), get_gid()); + } + protected: MonClient *monclient; Messenger *messenger;