From: Greg Farnum Date: Mon, 8 Mar 2010 15:47:47 +0000 (-0800) Subject: mon: Hack -- set allow_all in caps if client name is admin X-Git-Tag: v0.20~320 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f07ce468e502b403faaef6cc5e9bd578366c9395;p=ceph.git mon: Hack -- set allow_all in caps if client name is admin --- diff --git a/src/mon/AuthMonitor.cc b/src/mon/AuthMonitor.cc index 1319ccfcdd33..a4f4d1eb8bb3 100644 --- a/src/mon/AuthMonitor.cc +++ b/src/mon/AuthMonitor.cc @@ -434,7 +434,9 @@ bool AuthMonitor::prep_auth(MAuth *m, bool paxos_writable) bufferlist::iterator iter = caps_info.caps.begin(); s->caps.parse(iter); s->caps.set_auid(auid); - } + //HACK: + if (entity_name->name.compare("admin") == 0) + s->caps.allow_all = true; } } catch (buffer::error *err) { ret = -EINVAL; dout(0) << "caught error when trying to handle auth request, probably malformed request" << dendl;