]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: ignore permission check when fuse_default_permissions is on 5480/head
authorYan, Zheng <zyan@redhat.com>
Wed, 5 Aug 2015 13:56:45 +0000 (21:56 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 5 Aug 2015 14:10:46 +0000 (22:10 +0800)
commit51aae7b5dec84849454dc59289b6354ee4e7e689
treec8ed98fb960bfdc28738a5eeabb8f9ecf5e84c39
parent7d11b6b9d1f48569d8fe3877d58a858b4104b5b7
client: ignore permission check when fuse_default_permissions is on

When fuse_default_permissions is on, linux kernel does permission check.
So there is no need to do extra permission check in ceph-fuse. permission
check code in ceph-fuse has a problem, it does not handle supplementary
user at all (Client::check_permissions() may return -EACCESS in the case
it should return 0).

Fixes: #12617
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/client/Client.cc