Skip to content

Commit

Permalink
Revert "mon: add check_privileges function to OSDMon."
Browse files Browse the repository at this point in the history
Deprecated by the existence of MonCaps::check_privileges

This reverts commit 07df67f.
  • Loading branch information
Greg Farnum committed Mar 10, 2010
1 parent e59f544 commit 5302994
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
10 changes: 0 additions & 10 deletions src/mon/OSDMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1403,13 +1403,3 @@ void OSDMonitor::_pool_op(MPoolOp *m, int replyCode, epoch_t epoch)
mon->send_reply(m, reply);
delete m;
}

//for now, this just checks against allow_all, auid equaling caps.auid,
//or auid being default public
bool OSDMonitor::check_privileges(__u64 auid, MonCaps& caps, int req_perm)
{
if (caps.allow_all) return true;
if (CEPH_AUTH_UID_DEFAULT == auid) return true;
if (auid == caps.auid) return true;
return false;
}
3 changes: 0 additions & 3 deletions src/mon/OSDMonitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ class OSDMonitor : public PaxosService {
int prepare_new_pool(MPoolOp *m);
void _pool_op(MPoolOp *m, int replyCode, epoch_t epoch);

//check that the provided caps allow the given action in auid's name
bool check_privileges(__u64 auid, MonCaps& caps, int req_perm);

struct C_Booted : public Context {
OSDMonitor *cmon;
MOSDBoot *m;
Expand Down

0 comments on commit 5302994

Please sign in to comment.