[Bugs] [Bug 1254151] New: Non root user failed to delete empty directory which has no read permission, exit with "Permission denied"

bugzilla at redhat.com bugzilla at redhat.com
Mon Aug 17 09:48:55 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1254151

            Bug ID: 1254151
           Summary: Non root user failed to delete empty directory which
                    has no read permission, exit with "Permission denied"
           Product: GlusterFS
           Version: 3.6.2
         Component: access-control
          Severity: medium
          Assignee: bugs at gluster.org
          Reporter: suvendu.mitra at gmail.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Description of problem:
Non root user failed to delete empty directory which has no read permission, we
used at client side "fuse.glusterfs" mount

Version-Release number of selected component (if applicable):
glusterfs-3.6.2

How reproducible:
create a director, remove the read permission and try to delete it

[root at CLA-0(test) /root]
# su - iotest
[iotest at CLA-0(test) /home/iotest]
#  mkdir -p ldq
[iotest at CLA-0(test) /home/iotest]
# chmod -r ldq
[iotest at CLA-0(test) /home/iotest]
# ls -l
total 4
d-wx--x--x 2 iotest iotest 4096 Aug 17 11:08 ldq
[iotest at CLA-0(test) /home/iotest]
# ls ldq/
ls: cannot open directory ldq/: Permission denied
[iotest at CLA-0(test) /home/iotest]


Steps to Reproduce:
1. su - itest
2. mkdir -p ldx 
3. chmod -r ldx
4. ls -l
total 4
d-wx--x--x 2 itest itest 4096 Aug 17 11:08 ldx
5. rm -rf ldx


Actual results:
"rm: cannot remove ‘ldx’: Permission denied"

Expected results:
user can delete the empty directory when directory have no read permission

Additional info:
Gluster Client side log
"""

[2015-08-14 02:53:13.343894] W [fuse-bridge.c:1322:fuse_unlink_cbk]
0-glusterfs-fuse: 1168341: RMDIR() /itest/ldx => -1 (Permission denied)
[2015-08-14 05:51:20.630630] I
[dht-selfheal.c:1065:dht_selfheal_layout_new_directory] 0-home-dht: chunk size
= 0xffffffff / 943 = 0x457f52
[2015-08-14 05:51:20.630716] I
[dht-selfheal.c:1103:dht_selfheal_layout_new_directory] 0-home-dht: assigning
range size 0xffffff0e to home-replicate-0
[2015-08-14 05:51:20.631806] I [MSGID: 109036]
[dht-common.c:6222:dht_log_new_layout_for_dir_selfheal] 0-home-dht: Setting
layout of /itest/ldx with [Subvol_name: home-replicate-0, Err: -1 , Start: 0 ,
Stop: 4294967295 ], 
[2015-08-14 05:52:20.602914] E [client-rpc-fops.c:2680:client3_3_opendir_cbk]
0-home-client-0: remote operation failed: Permission denied. Path: /itest/ldx
(80ae9ec0-97b2-4503-9611-8a795c7596d1)
[2015-08-14 05:52:20.603043] E [client-rpc-fops.c:2680:client3_3_opendir_cbk]
0-home-client-1: remote operation failed: Permission denied. Path: /itest/ldx
(80ae9ec0-97b2-4503-9611-8a795c7596d1)
[2015-08-14 05:52:20.603067] W [fuse-bridge.c:1322:fuse_unlink_cbk]
0-glusterfs-fuse: 1324660: RMDIR() /itest/ldx => -1 (Permission denied)
[2015-08-14 05:53:59.040577] E [client-rpc-fops.c:2680:client3_3_opendir_cbk]
0-home-client-1: remote operation failed: Permission denied. Path: /itest/ldx
(80ae9ec0-97b2-4503-9611-8a795c7596d1)
[2015-08-14 05:53:59.040606] E [client-rpc-fops.c:2680:client3_3_opendir_cbk]
0-home-client-0: remote operation failed: Permission denied. Path: /itest/ldx
(80ae9ec0-97b2-4503-9611-8a795c7596d1)
"""
Server side log
"""
[2015-08-17 09:21:53.815318] E [server-rpc-fops.c:648:server_opendir_cbk]
0-home-server: 3299336: OPENDIR /iotest/ldq
(a543bb80-4a2e-4250-b5d1-b05f41b0fadf) ==> (Permission denied)
"""

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list