[Bugs] [Bug 1542318] dht_lookup_unlink_of_false_linkto_cbk fails with " Permission denied"
bugzilla at redhat.com
bugzilla at redhat.com
Tue Feb 6 09:48:10 UTC 2018
https://bugzilla.redhat.com/show_bug.cgi?id=1542318
--- Comment #1 from Nithya Balachandran <nbalacha at redhat.com> ---
Unprivileged users do not have permissions to delete stale linkto files.
Failure to unlink the file causes DHT to return EIO.
Steps to reproduce this issue:
=============================
1. gluster volume create vol1 server1:/bricks/brick1/vol1-{1,2}
2. gluster volume start vol1
3. mount -t glusterfs -s server1:/vol1 /mnt/fuse1
# create a file for testing
4. dd if=/dev/urandom of=/mnt/fuse1/FILE-1 count=1 bs=16k
5. gluster volume set vol1 performance.parallel-readdir on
#Rename the file in order to create a linkto file
6. mv vol1/FILE-1 vol1/FILE-2
#Force the linkto xattr values to become stale by changing the dht subvols in
the graph
7. gluster volume set vol1 performance.parallel-readdir off
Fuse mount as a non-privileged user
8. echo user_allow_other >> /etc/fuse.conf
9. gluster volume set vol1 allow-insecure on
Create a user user1
10. useradd user1
11: su user1
12. cd /home/user1/
13. mkdir mymount
#Mount the volume as user1
14: glusterfs --log-level=INFO --log-file=my_user_accessable_logfile.log
--volfile-id=vol1 --volfile-server=server1 ~/mymount
15: cd mymount/
16. ls FILE-2
Results:
=========
ls: cannot access FILE-2: Input/output error
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=gJxgdzssaV&a=cc_unsubscribe
More information about the Bugs
mailing list