mon: Hack -- set allow_all in caps if client name is admin

This commit is contained in:
Greg Farnum 2010-03-08 07:47:47 -08:00
parent 9199dd2d9e
commit f07ce468e5

View File

@ -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;