Project

General

Profile

Actions

Bug #49882

closed

mgr/volumes: setuid and setgid file bits are not retained after a subvolume snapshot restore

Added by Kotresh Hiremath Ravishankar about 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Urgent
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


Related issues 3 (0 open3 closed)

Copied to CephFS - Backport #49903: nautilus: mgr/volumes: setuid and setgid file bits are not retained after a subvolume snapshot restoreResolvedActions
Copied to CephFS - Backport #49904: octopus: mgr/volumes: setuid and setgid file bits are not retained after a subvolume snapshot restoreResolvedKotresh Hiremath RavishankarActions
Copied to CephFS - Backport #49905: pacific: mgr/volumes: setuid and setgid file bits are not retained after a subvolume snapshot restoreResolvedKotresh Hiremath RavishankarActions
Actions

Also available in: Atom PDF