Project

General

Profile

Bug #49882

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

Added by Kotresh Hiremath Ravishankar about 1 month ago. Updated 29 days ago.

Status:
Pending Backport
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

Copied to CephFS - Backport #49903: nautilus: mgr/volumes: setuid and setgid file bits are not retained after a subvolume snapshot restore In Progress
Copied to CephFS - Backport #49904: octopus: mgr/volumes: setuid and setgid file bits are not retained after a subvolume snapshot restore In Progress
Copied to CephFS - Backport #49905: pacific: mgr/volumes: setuid and setgid file bits are not retained after a subvolume snapshot restore Resolved

History

#1 Updated by Kotresh Hiremath Ravishankar about 1 month ago

  • Status changed from New to In Progress
  • Pull request ID set to 40214

#2 Updated by Kotresh Hiremath Ravishankar 29 days ago

  • Backport set to pacific,octopus,nautilus

#3 Updated by Kotresh Hiremath Ravishankar 29 days ago

  • Status changed from In Progress to Fix Under Review

#4 Updated by Kotresh Hiremath Ravishankar 29 days ago

  • Component(FS) cephfs.pyx, libcephfs, mgr/volumes added

#5 Updated by Patrick Donnelly 29 days ago

  • Status changed from Fix Under Review to Pending Backport
  • Assignee set to Kotresh Hiremath Ravishankar
  • Target version set to v17.0.0
  • Source set to Support

#6 Updated by Backport Bot 29 days ago

  • Copied to Backport #49903: nautilus: mgr/volumes: setuid and setgid file bits are not retained after a subvolume snapshot restore added

#7 Updated by Backport Bot 29 days ago

  • Copied to Backport #49904: octopus: mgr/volumes: setuid and setgid file bits are not retained after a subvolume snapshot restore added

#8 Updated by Backport Bot 29 days ago

  • Copied to Backport #49905: pacific: mgr/volumes: setuid and setgid file bits are not retained after a subvolume snapshot restore added

Also available in: Atom PDF