summaryrefslogtreecommitdiffstats
path: root/src/test/mds (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* mds/MDSAuthCap: verify the caller_gid is validSage Weil2015-10-011-4/+22
| | | | | | Verify both the caller uid and gid are a match for the given rule. Signed-off-by: Sage Weil <sage@redhat.com>
* mds: fix chown/chgrp check and testsSage Weil2015-10-011-19/+19
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* unittest_mds_authcaps: fix a few unit testsSage Weil2015-10-011-3/+5
| | | | | | | The MAY_CREATE conditoin is simple: the created inode must match the caller uid and gid. Signed-off-by: Sage Weil <sage@redhat.com>
* mds/MDSAuthCaps: add test cases for is_capableNishtha Rai2015-10-011-10/+18
|
* unittest_mds_authcap: test lists of allow grantsSage Weil2015-10-011-0/+9
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* mds/MDSAuthCap: drop leading / in pathsSage Weil2015-10-011-8/+8
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* mds/MDSAuthCaps: add cct for debug contextSage Weil2015-10-011-9/+9
| | | | | signed-off-by: Nishtha Rai <nishtha3rai@gmail.com> Signed-off-by: Sage Weil <sage@redhat.com>
* mds/MDSAuthCaps: pass down inode uid.gid and modeSage Weil2015-10-011-8/+8
| | | | | | We will need this to evaluate the unix permissions. Signed-off-by: Sage Weil <sage@redhat.com>
* mds/MDSAuthCaps: use bitmask for is_capable()Sage Weil2015-10-011-8/+8
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* mds/MDSAuthCap: fix path matchSage Weil2015-10-011-0/+1
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* mds/MDSAuthCaps: parse optional gid listSage Weil2015-10-011-0/+13
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* test: unit tests for MDSAuthCapsJohn Spray2014-10-081-0/+151
Signed-off-by: John Spray <john.spray@redhat.com>