]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: do not make use of GIDs which aren't included by the Client in its request
authorGreg Farnum <gfarnum@redhat.com>
Wed, 21 Sep 2016 21:42:16 +0000 (14:42 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Wed, 21 Sep 2016 23:33:58 +0000 (16:33 -0700)
commit99bea1ec4c6735ecd857654ddcc48f9d9976b933
treedd0be3f503c2da5b7e7e9414dd588bae904afffd
parentfbda12b1eefeebae1e1c64b01bc8f222c0d4c13d
mds: do not make use of GIDs which aren't included by the Client in its request

We were previously iterating through all the GIDs allowed by a particular
MDSAuthCap::match, but there are plenty of situations where a GID might
be *allowed* but not actually assigned. Take the set intersection of what's
allowed and what's specified instead.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/mds/MDSAuthCaps.cc