]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agotest: add TestSessionFilter 6180/head
John Spray [Mon, 5 Oct 2015 17:56:56 +0000 (18:56 +0100)]
test: add TestSessionFilter

Tests for SessionFilter, the class filters
allows session listing and eviction in the
new MDS tell commands.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agomds: implement filtered "session ls" tell command
John Spray [Fri, 2 Oct 2015 10:19:11 +0000 (11:19 +0100)]
mds: implement filtered "session ls" tell command

So that one can efficiently query client session
state remotely.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agomds: call through to MDSRank in handle_command
John Spray [Fri, 2 Oct 2015 10:18:17 +0000 (11:18 +0100)]
mds: call through to MDSRank in handle_command

...so that we can implement things like
session ls in MDSRankDispatcher.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agomds: add auth_name to session_info_t
John Spray [Fri, 2 Oct 2015 10:13:52 +0000 (11:13 +0100)]
mds: add auth_name to session_info_t

Record the name of the entity who's authorisation
credentials were used during connection.  This
allows us to refer to it later when listing or
evicting sessions, for the user's benefit.

Signed-off-by: John Spray <john.spray@redhat.com>
9 years agoMerge remote-tracking branch 'gh/infernalis'
Sage Weil [Sat, 3 Oct 2015 16:42:00 +0000 (12:42 -0400)]
Merge remote-tracking branch 'gh/infernalis'

9 years agomon: fix msg leak in resend_routed_requests
Sage Weil [Fri, 2 Oct 2015 21:43:22 +0000 (17:43 -0400)]
mon: fix msg leak in resend_routed_requests

MForward takes its own ref so we can drop ours.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMon: Fix decoded message leak when this monitor is leader
Haomai Wang [Fri, 2 Oct 2015 11:14:59 +0000 (19:14 +0800)]
Mon: Fix decoded message leak when this monitor is leader

Fix #13109
Signed-off-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6139 from liewegas/wip-13283
Sage Weil [Sat, 3 Oct 2015 12:50:25 +0000 (08:50 -0400)]
Merge pull request #6139 from liewegas/wip-13283

librados: add FULL_TRY flag; EDQUOT != ENOSPC

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agolibrados: document new flag 6139/head
Sage Weil [Fri, 2 Oct 2015 21:47:54 +0000 (17:47 -0400)]
librados: document new flag

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6169 from rzarzynski/wip-13326
Yehuda Sadeh [Fri, 2 Oct 2015 21:17:42 +0000 (14:17 -0700)]
Merge pull request #6169 from rzarzynski/wip-13326

rgw: improve handling of already removed buckets in object expirer.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #6168 from SUSE/wip-13333-infernalis
Ken Dreyer [Fri, 2 Oct 2015 19:30:37 +0000 (13:30 -0600)]
Merge pull request #6168 from SUSE/wip-13333-infernalis

ceph.spec.in: correctly declare systemd dependency for SLE/openSUSE

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
9 years agoceph.spec.in: correctly declare systemd dependency for SLE/openSUSE 6168/head
Nathan Cutler [Tue, 29 Sep 2015 21:28:00 +0000 (23:28 +0200)]
ceph.spec.in: correctly declare systemd dependency for SLE/openSUSE

Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 7b1882f87509092380d11ec68b504a7bc1f77830)

9 years agoosd/ReplicatedPG: exempt MDS from the failsafe check, too
Sage Weil [Fri, 2 Oct 2015 18:12:22 +0000 (14:12 -0400)]
osd/ReplicatedPG: exempt MDS from the failsafe check, too

This mimics the prior behavior.  We probably want to change this at some
point!

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agorgw: improve handling of already removed buckets in object expirer. 6138/head 6169/head
Radoslaw Zarzynski [Thu, 1 Oct 2015 19:06:13 +0000 (21:06 +0200)]
rgw: improve handling of already removed buckets in object expirer.

Fixes: #13326
Backport: infernalis
Signed-off-by: Radoslaw Zarzynski <rzarzynski@github.com>
9 years agoMerge pull request #5907 from dachary/wip-release-notes
Loic Dachary [Fri, 2 Oct 2015 15:50:30 +0000 (17:50 +0200)]
Merge pull request #5907 from dachary/wip-release-notes

release-notes: draft v0.94.4 release notes

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agorelease-notes: draft v0.94.4 release notes 5907/head
Loic Dachary [Sun, 13 Sep 2015 12:49:39 +0000 (14:49 +0200)]
release-notes: draft v0.94.4 release notes

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agotools: ceph-release-notes handle multiple issues
Loic Dachary [Wed, 30 Sep 2015 16:58:40 +0000 (18:58 +0200)]
tools: ceph-release-notes handle multiple issues

* handle the case where a single pull request is associated with
  multiple pull requests
* encapsulate the quest for the original in a function for easier
  maintenance
* add the --verbose flag for debugging

Signed-off-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #6096 from liewegas/wip-13260
Sage Weil [Fri, 2 Oct 2015 12:47:33 +0000 (08:47 -0400)]
Merge pull request #6096 from liewegas/wip-13260

osd/ReplicatedPG: preserve (some) flags when proxying reads

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #6107 from liewegas/wip-13206
Sage Weil [Fri, 2 Oct 2015 12:39:24 +0000 (08:39 -0400)]
Merge pull request #6107 from liewegas/wip-13206

osd: init started to 0

9 years agoMerge pull request #6136 from liewegas/wip-13114
Sage Weil [Fri, 2 Oct 2015 12:38:39 +0000 (08:38 -0400)]
Merge pull request #6136 from liewegas/wip-13114

osd/librados: fix notify completion race

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #6137 from SUSE/wip-13324-infernalis
Loic Dachary [Thu, 1 Oct 2015 22:34:53 +0000 (00:34 +0200)]
Merge pull request #6137 from SUSE/wip-13324-infernalis

install-deps.sh: use %bcond_with selinux on SLE/openSUSE

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge remote-tracking branch 'jdurgin/wip-13281' into infernalis
Samuel Just [Thu, 1 Oct 2015 21:55:37 +0000 (14:55 -0700)]
Merge remote-tracking branch 'jdurgin/wip-13281' into infernalis

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoinstall-deps.sh: use %bcond_with selinux on SLE/openSUSE 6137/head
Nathan Cutler [Thu, 1 Oct 2015 19:04:29 +0000 (21:04 +0200)]
install-deps.sh: use %bcond_with selinux on SLE/openSUSE

http://tracker.ceph.com/issues/13324 Fixes: #13324

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoceph_test_rados_api_aio: test pool full gets EDQUOT when FULL_TRY flag is set
Sage Weil [Thu, 1 Oct 2015 19:34:59 +0000 (15:34 -0400)]
ceph_test_rados_api_aio: test pool full gets EDQUOT when FULL_TRY flag is set

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agolibrados: expose OPERATION_FULL_TRY flag
Sage Weil [Thu, 1 Oct 2015 19:03:22 +0000 (15:03 -0400)]
librados: expose OPERATION_FULL_TRY flag

Allow librados users to opt to receive ENOSPC or EDQUOT when they submit
an operation against a full cluster.  This should only be used if the
librados app can handle those errors gracefully (librbd, for example,
cannot).

Also note that this allows savvy librados users to send delete operations;
they will get either a success or EDQUOT, depending on whether the
operation results in a net drop in space utilization.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd: return -EDQUOT instead of -ENOSPC if it is a pool quota
Sage Weil [Thu, 1 Oct 2015 19:01:59 +0000 (15:01 -0400)]
osd: return -EDQUOT instead of -ENOSPC if it is a pool quota

The pool quota error should return EDQUOT intead of ENOSPC.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosdc/Objecter: distinguish between multiple notify completions 6136/head
Sage Weil [Thu, 1 Oct 2015 18:50:34 +0000 (14:50 -0400)]
osdc/Objecter: distinguish between multiple notify completions

We may send a notify to the cluster multiple times due to OSDMap
changes.  In some cases, earlier notify attempts may complete with
an error, while later attempts succeed.  We need to only pay
attention to the most-recently send notify's completion.

Do this by making note of the notify_id in the initial ACK (only
present when talking to newer OSDs).  When we get a notify
completion, match it against our expected notify_id (if we have
one) or else discard it.

This is important because in some cases an early notify completion
may be an error while a later one succeeds.

Note that if we are talking to an old cluster we will simply not record a
notify_id and our behavior will be the same as before (we will trust any
notify completion we get).

Fixes: #13114
Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd: reply to notify request with our unique notify_id
Sage Weil [Thu, 1 Oct 2015 18:50:00 +0000 (14:50 -0400)]
osd: reply to notify request with our unique notify_id

The OSD assigns a unique ID to each notify it queues for
processing.  Include this in the reply to the notifier so that
they can match it up with the eventual completions they receive.

This is necessary to distinguish between multiple completions
they may receive if there is PG peering and the notify is resent.
In particular, an earlier notify may return an error when a later
attempt succeeds.

This is forwards and backwards compatible: new clients will make use of
this reply payload but older clients ignore it.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge remote-tracking branch 'gh/infernalis'
Sage Weil [Thu, 1 Oct 2015 15:51:50 +0000 (11:51 -0400)]
Merge remote-tracking branch 'gh/infernalis'

9 years agoMerge branch 'wip-mdscap'
Sage Weil [Thu, 1 Oct 2015 15:03:09 +0000 (11:03 -0400)]
Merge branch 'wip-mdscap'

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
9 years agoMerge pull request #6114 from SUSE/wip-suse-spec-fixes
Ken Dreyer [Thu, 1 Oct 2015 15:04:15 +0000 (09:04 -0600)]
Merge pull request #6114 from SUSE/wip-suse-spec-fixes

ceph.spec.in: correctly declare systemd dependency for SLE/openSUSE

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
9 years agoMerge pull request #6134 from SUSE/wip-13318-infernalis
Sage Weil [Thu, 1 Oct 2015 14:15:52 +0000 (10:15 -0400)]
Merge pull request #6134 from SUSE/wip-13318-infernalis

install-deps.sh: openSUSE-release/sles-release/sled-release are always present

9 years agoinstall-deps.sh: openSUSE-release/sles-release/sled-release are always present 6134/head
Nathan Cutler [Thu, 1 Oct 2015 14:04:26 +0000 (16:04 +0200)]
install-deps.sh: openSUSE-release/sles-release/sled-release are always present

http://tracker.ceph.com/issues/13318 Fixes: #13318

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoceph_test_libcephfs: remove remaining pool name assumptions
Sage Weil [Thu, 3 Sep 2015 17:47:55 +0000 (13:47 -0400)]
ceph_test_libcephfs: remove remaining pool name assumptions

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoclient: clarify setattr forced sync behavior
Sage Weil [Thu, 3 Sep 2015 17:41:43 +0000 (13:41 -0400)]
client: clarify setattr forced sync behavior

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoqa/workunits/fs/test_auth_caps: superceded by ceph_test_libcephfs
Sage Weil [Thu, 3 Sep 2015 17:29:33 +0000 (13:29 -0400)]
qa/workunits/fs/test_auth_caps: superceded by ceph_test_libcephfs

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph_test_libcephfs: fix LibCephFS.OpenLayout test
Sage Weil [Thu, 3 Sep 2015 17:28:45 +0000 (13:28 -0400)]
ceph_test_libcephfs: fix LibCephFS.OpenLayout test

We can't make assumptions about the name of the data pool.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agounittest_mds_authcap: improve user tests
Sage Weil [Thu, 3 Sep 2015 17:08:00 +0000 (13:08 -0400)]
unittest_mds_authcap: improve user tests

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: drop MAY_CREATE
Sage Weil [Thu, 3 Sep 2015 16:44:20 +0000 (12:44 -0400)]
mds: drop MAY_CREATE

The check is a no-op.  We already verify the uid/gid combo is valid and
that the dir is writeable with MAY_WRITE.  The new file is always set to
the caller uid:gid.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/MDSAuthCap: verify the caller_gid is valid
Sage Weil [Thu, 3 Sep 2015 16:34:33 +0000 (12:34 -0400)]
mds/MDSAuthCap: verify the caller_gid is valid

Verify both the caller uid and gid are a match for the given rule.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: fix chown/chgrp check and tests
Sage Weil [Thu, 3 Sep 2015 16:21:47 +0000 (12:21 -0400)]
mds: fix chown/chgrp check and tests

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/MDSAuthCaps: rename args for is_capable
Sage Weil [Thu, 3 Sep 2015 14:56:11 +0000 (10:56 -0400)]
mds/MDSAuthCaps: rename args for is_capable

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph_test_libcephfs: add AccessTest.User
Sage Weil [Thu, 3 Sep 2015 14:45:18 +0000 (10:45 -0400)]
ceph_test_libcephfs: add AccessTest.User

Covers read/write/create.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/SessionMap: fix MAY_CREATE check
Sage Weil [Thu, 3 Sep 2015 14:44:59 +0000 (10:44 -0400)]
mds/SessionMap: fix MAY_CREATE check

It's about caller_uid/gid.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph_test_libcephfs: make foo, path tests use unique paths, users
Sage Weil [Wed, 2 Sep 2015 14:43:44 +0000 (10:43 -0400)]
ceph_test_libcephfs: make foo, path tests use unique paths, users

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoqa/workunits: drop bash path tests
Sage Weil [Wed, 2 Sep 2015 02:31:39 +0000 (22:31 -0400)]
qa/workunits: drop bash path tests

ceph_test_libcephfs ones are better.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/SessionMap: fix check_access for stray inodes
Sage Weil [Wed, 2 Sep 2015 02:30:36 +0000 (22:30 -0400)]
mds/SessionMap: fix check_access for stray inodes

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/SessionMap: move Session method definitions together
Sage Weil [Wed, 2 Sep 2015 02:26:01 +0000 (22:26 -0400)]
mds/SessionMap: move Session method definitions together

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/Locker: do not ack from do_cap_update
Sage Weil [Wed, 2 Sep 2015 02:14:27 +0000 (22:14 -0400)]
mds/Locker: do not ack from do_cap_update

Caller (handle_client_caps) already does it if we return
false.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph_test_libcephfs: fix update-after-unlink test
Sage Weil [Tue, 1 Sep 2015 20:52:27 +0000 (16:52 -0400)]
ceph_test_libcephfs: fix update-after-unlink test

This needs to be done with a user restricted to a path.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/Server: skip auth check on session-less mdr's
Sage Weil [Fri, 28 Aug 2015 21:32:11 +0000 (17:32 -0400)]
mds/Server: skip auth check on session-less mdr's

The mds internal requests don't have a session.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoclient: do sync setattr when caller != last cap dirtier
Sage Weil [Wed, 19 Aug 2015 13:48:16 +0000 (09:48 -0400)]
client: do sync setattr when caller != last cap dirtier

This way we can still do cap writeback in general when the caller is not
the same as the mount_uid/gid, but we flip to a sync setattr when we have
to because the dirty caps have a different uid/gid than the current
caller.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoclient: consolidate client_mount_{uid,gid} and client_{user,group}_id options
Sage Weil [Wed, 19 Aug 2015 13:38:25 +0000 (09:38 -0400)]
client: consolidate client_mount_{uid,gid} and client_{user,group}_id options

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoclient: add get_{uid,gid} helpers for consistent uid/gids
Sage Weil [Wed, 19 Aug 2015 13:36:16 +0000 (09:36 -0400)]
client: add get_{uid,gid} helpers for consistent uid/gids

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoadd caps_dirty to setattr
Nishtha Rai [Wed, 5 Aug 2015 14:05:39 +0000 (19:35 +0530)]
add caps_dirty to setattr

Signed-off-by: Nishtha Rai <nishtha3rai@gmail.com>
9 years agounittest_mds_authcaps: fix a few unit tests
Sage Weil [Mon, 24 Aug 2015 17:02:40 +0000 (13:02 -0400)]
unittest_mds_authcaps: fix a few unit tests

The MAY_CREATE conditoin is simple: the created inode must match the caller
uid and gid.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agofix test_path_caps
Jashan Kamboj [Wed, 12 Aug 2015 15:38:02 +0000 (21:08 +0530)]
fix test_path_caps

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
9 years agodoc:fix path-based restriction
Jashan Kamboj [Wed, 12 Aug 2015 15:39:24 +0000 (21:09 +0530)]
doc:fix path-based restriction

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
9 years agotest/libcephfs/access: add update_after_unlink test
Jashan Kamboj [Tue, 18 Aug 2015 15:09:58 +0000 (20:39 +0530)]
test/libcephfs/access: add update_after_unlink test

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
9 years agotest/libcephfs/access: add ReadOnly restriction test
Jashan Kamboj [Mon, 17 Aug 2015 20:23:36 +0000 (01:53 +0530)]
test/libcephfs/access: add ReadOnly restriction test

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
9 years agotest/libcephfs/access: add Path restriction test
Jashan Kamboj [Mon, 17 Aug 2015 20:22:19 +0000 (01:52 +0530)]
test/libcephfs/access: add Path restriction test

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
9 years agoclient/Client: added client_mount_uid and gid as parameters to getattr call
Nishtha Rai [Mon, 17 Aug 2015 14:50:46 +0000 (20:20 +0530)]
client/Client: added client_mount_uid and gid as parameters to getattr call

Signed-off-by: Nishtha Rai <nishtha3rai@gmail.com>
9 years agomds/MDSAuthCap: fix creation ownership check
Sage Weil [Mon, 17 Aug 2015 14:08:55 +0000 (10:08 -0400)]
mds/MDSAuthCap: fix creation ownership check

Check uid too.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/MDSAuthCaps: whitespace
Sage Weil [Mon, 17 Aug 2015 14:07:15 +0000 (10:07 -0400)]
mds/MDSAuthCaps: whitespace

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/MDSAuthCaps: only verify create git when not AUTH_UID_ANY
Sage Weil [Mon, 17 Aug 2015 14:07:07 +0000 (10:07 -0400)]
mds/MDSAuthCaps: only verify create git when not AUTH_UID_ANY

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: send cap flush ack even when access check failed.
Yan, Zheng [Fri, 14 Aug 2015 07:33:27 +0000 (15:33 +0800)]
mds: send cap flush ack even when access check failed.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agoclient: force setattr to MDS when caller's {uid,gid} are not the specified ones
Yan, Zheng [Fri, 14 Aug 2015 07:29:02 +0000 (15:29 +0800)]
client: force setattr to MDS when caller's {uid,gid} are not the specified ones

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agoclient: allow specifying default caller_{uid,gid} of MClientRequest
Yan, Zheng [Fri, 14 Aug 2015 07:21:17 +0000 (15:21 +0800)]
client: allow specifying default caller_{uid,gid} of MClientRequest

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agoclient: add options to specify caller_{uid,gid} of MClientCaps
Yan, Zheng [Fri, 14 Aug 2015 07:04:22 +0000 (15:04 +0800)]
client: add options to specify caller_{uid,gid} of MClientCaps

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agomessages: add caller_{uid,gid} to cap msgs
Yan, Zheng [Fri, 14 Aug 2015 06:49:08 +0000 (14:49 +0800)]
messages: add caller_{uid,gid} to cap msgs

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agotest/libcephfs/access: expand example test a bit
Sage Weil [Wed, 12 Aug 2015 18:36:54 +0000 (14:36 -0400)]
test/libcephfs/access: expand example test a bit

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/Server: fix check_access
Sage Weil [Wed, 12 Aug 2015 17:58:05 +0000 (13:58 -0400)]
mds/Server: fix check_access

Pass through correct mask.  Clean up formatting.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoclient: properly set caller_{uid,gid} of readdir request
Yan, Zheng [Wed, 12 Aug 2015 07:36:06 +0000 (15:36 +0800)]
client: properly set caller_{uid,gid} of readdir request

save uid/gid of ll_opendir caller in dir_result_t, use the saved
uid/gid for readdir request.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agoceph_test_libcephfs: skeleton for access tests
Sage Weil [Mon, 10 Aug 2015 17:50:36 +0000 (13:50 -0400)]
ceph_test_libcephfs: skeleton for access tests

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: fix Server::check_access
Yan, Zheng [Mon, 10 Aug 2015 08:31:53 +0000 (16:31 +0800)]
mds: fix Server::check_access

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agodoc/cephfs: path-based restriction
Jashan Kamboj [Tue, 4 Aug 2015 17:59:19 +0000 (23:29 +0530)]
doc/cephfs: path-based restriction

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
9 years agoadd check_access in _do_cap_update
Jashan Kamboj [Mon, 3 Aug 2015 19:11:15 +0000 (00:41 +0530)]
add check_access in _do_cap_update

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
9 years agomove _check_access to SessionMap
Jashan Kamboj [Mon, 3 Aug 2015 18:48:38 +0000 (00:18 +0530)]
move _check_access to SessionMap

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
9 years agoadd _check_access for async cap updates
Jashan Kamboj [Fri, 31 Jul 2015 20:47:05 +0000 (02:17 +0530)]
add _check_access for async cap updates

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
9 years agoadd stray_prior_path for is_stray
Jashan Kamboj [Thu, 30 Jul 2015 15:43:23 +0000 (21:13 +0530)]
add stray_prior_path for is_stray

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
9 years agoadd stray_prior_path to store path before rename
Jashan Kamboj [Tue, 28 Jul 2015 19:07:34 +0000 (00:37 +0530)]
add stray_prior_path to store path before rename

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
9 years agomds/MDSAuthCaps: add test cases for is_capable
Nishtha Rai [Fri, 31 Jul 2015 17:31:04 +0000 (23:01 +0530)]
mds/MDSAuthCaps: add test cases for is_capable

9 years agomds/Server: add chown and chgrp check access to setattr
Nishtha Rai [Wed, 29 Jul 2015 14:20:25 +0000 (19:50 +0530)]
mds/Server: add chown and chgrp check access to setattr

9 years agomds/Server: add create access check for openc
Nishtha Rai [Tue, 28 Jul 2015 17:56:19 +0000 (23:26 +0530)]
mds/Server: add create access check for openc

Signed-off-by: Nishtha Rai <nishtha3rai@gmail.com>
9 years agoServer: add create access check for mknod and symlink
Nishtha Rai [Tue, 28 Jul 2015 17:08:15 +0000 (22:38 +0530)]
Server: add create access check for mknod and symlink

9 years agotest_auth_caps: add mkdir check with mode 557
Nishtha Rai [Tue, 28 Jul 2015 17:05:54 +0000 (22:35 +0530)]
test_auth_caps: add mkdir check with mode 557

9 years agotest_auth_caps: resolve bug with other bits test case
Nishtha Rai [Mon, 27 Jul 2015 13:34:30 +0000 (19:04 +0530)]
test_auth_caps: resolve bug with other bits test case

9 years agotest_auth_caps: remove grp mount
Nishtha Rai [Mon, 27 Jul 2015 12:58:40 +0000 (18:28 +0530)]
test_auth_caps: remove grp mount

Signed-off-by: Nishtha Rai <nishtha3rai@gmail.com>
9 years agoMDSAuthCaps: validate create access
Nishtha Rai [Thu, 23 Jul 2015 15:20:18 +0000 (20:50 +0530)]
MDSAuthCaps: validate create access

Signed-off-by: Nishtha Rai <nishtha3rai@gmail.com>
9 years agoadd stray_prior_path to store path before unlink
Jashan Kamboj [Tue, 28 Jul 2015 16:54:36 +0000 (22:24 +0530)]
add stray_prior_path to store path before unlink

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
9 years agoadd open check_access
Jashan Kamboj [Fri, 24 Jul 2015 16:12:43 +0000 (21:42 +0530)]
add open check_access

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
9 years agoadd link check_access
Jashan Kamboj [Tue, 21 Jul 2015 19:36:50 +0000 (01:06 +0530)]
add link check_access

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
9 years agoadd rename check_access
Jashan Kamboj [Tue, 21 Jul 2015 19:35:37 +0000 (01:05 +0530)]
add rename check_access

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
9 years agoadd snaps(ls,mk,rm,rename) check_access
Jashan Kamboj [Tue, 21 Jul 2015 19:33:27 +0000 (01:03 +0530)]
add snaps(ls,mk,rm,rename) check_access

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
9 years agoadd setlayout, setdirlayout, setxattr check_access
Jashan Kamboj [Tue, 21 Jul 2015 17:10:00 +0000 (22:40 +0530)]
add setlayout, setdirlayout, setxattr check_access

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
9 years agoadd readdir check_access
Jashan Kamboj [Tue, 21 Jul 2015 17:08:20 +0000 (22:38 +0530)]
add readdir check_access

Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
9 years agomds/Server: clean up check_access a bit
Sage Weil [Tue, 21 Jul 2015 16:50:24 +0000 (12:50 -0400)]
mds/Server: clean up check_access a bit

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMDSAuthCaps: add logic for group bits check
Nishtha Rai [Tue, 21 Jul 2015 15:09:40 +0000 (20:39 +0530)]
MDSAuthCaps: add logic for group bits check

Signed-off-by: Nishtha Rai <nishtha3rai@gmail.com>
9 years agotest_auth_caps: add test for user bits
Nishtha Rai [Mon, 20 Jul 2015 16:04:04 +0000 (21:34 +0530)]
test_auth_caps: add test for user bits

Signed-off-by: Nishtha Rai <nishtha3rai@gmail.com>
9 years agomds/MDSAuthCaps: add permissions for user bits
Nishtha Rai [Mon, 20 Jul 2015 14:01:25 +0000 (19:31 +0530)]
mds/MDSAuthCaps: add permissions for user bits

Signed-off-by: Nishtha Rai <nishtha3rai@gmail.com>