Actions
Bug #49882
closedmgr/volumes: setuid and setgid file bits are not retained after a subvolume snapshot restore
Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
% Done:
0%
Source:
Support
Tags:
Backport:
pacific,octopus,nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
cephfs.pyx, libcephfs, mgr/volumes
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
setuid and setgid file bits are not retained after a subvolume snapshot restore
Reproducer on vstart cluster:
#bin/ceph fs subvolume create a sub_0
#subvol_path=$(bin/ceph fs subvolume getpath a sub_0 2>dev/null)
#bin/ceph-fuse -c ./ceph.conf /mnt
#cp -p /bin/ping /mnt$subvol_path/
#bin/ceph fs subvolume snapshot create a sub_0 snap_0
#bin/ceph fs subvolume snapshot clone a sub_0 snap_0 clone_0
Check the modes:
#ls -l /mnt/volumes/_nogroup/sub_0/72d2ae82-d3f2-4e89-93e9-8b5eb48330bb/
total 63
-rwsr-xr-x 1 root root 64424 Jun 28 2019 ping
#ls -l /mnt/volumes/_nogroup/clone_0/aba4cf82-5175-439f-b48c-79d817771b87/
total 1
-rwxr-xr-x 1 root root 0 Jun 28 2019 ping
Actions