Skip to content

Commit

Permalink
Revert "mon: Hack -- set allow_all in caps if client name is admin"
Browse files Browse the repository at this point in the history
This reverts commit f07ce46.
  • Loading branch information
liewegas committed Mar 8, 2010
1 parent e0c3c15 commit c9506f7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/mon/AuthMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,7 @@ 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;
Expand Down

0 comments on commit c9506f7

Please sign in to comment.