]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: Hack -- set allow_all in caps if client name is admin
authorGreg Farnum <gregf@hq.newdream.net>
Mon, 8 Mar 2010 15:47:47 +0000 (07:47 -0800)
committerGreg Farnum <gregf@hq.newdream.net>
Mon, 8 Mar 2010 15:47:47 +0000 (07:47 -0800)
src/mon/AuthMonitor.cc

index 1319ccfcdd3348a1fdcd51a7e2e28969f9af0332..a4f4d1eb8bb3617554b786327d500598f10f7baf 100644 (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;