]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: MonCap: add new profiles
authorJoao Eduardo Luis <joao.luis@inktank.com>
Mon, 8 Sep 2014 16:00:20 +0000 (17:00 +0100)
committerJoao Eduardo Luis <joao@redhat.com>
Fri, 3 Oct 2014 15:24:19 +0000 (16:24 +0100)
commitd6b702ce46d1a6af90579b326fb2696479f46790
treea5b2c8fb50e1320955e0ee8a363ca9e583eee3c0
parent940c4e28120667f11111c0da256b878fa35a5623
mon: MonCap: add new profiles

Adds three new profiles:

  read-only:  able to issue all read-only (MON_CAP_R) commands.  Any
  command that may take additional caps (MON_CAP_W or MON_CAP_X) won't
  be allowed.

  read-write: able to issue all read-write (MON_CAP_R | MON_CAP_W)
  commands.  Commands that require MON_CAP_X will not be allowed.

  role-definer: solely able to issue commands on the 'auth' subsystem,
  to which all caps are given (MON_CAP_R | MON_CAP_W | MON_CAP_X).

Fixes: #8899
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/mon/MonCap.cc