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 #1

Updated by Kotresh Hiremath Ravishankar about 3 years ago

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

Updated by Kotresh Hiremath Ravishankar about 3 years ago

  • Backport set to pacific,octopus,nautilus
Actions #3

Updated by Kotresh Hiremath Ravishankar about 3 years ago

  • Status changed from In Progress to Fix Under Review
Actions #4

Updated by Kotresh Hiremath Ravishankar about 3 years ago

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

Updated by Patrick Donnelly about 3 years 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
Actions #6

Updated by Backport Bot about 3 years ago

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

Updated by Backport Bot about 3 years ago

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

Updated by Backport Bot about 3 years ago

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

Updated by Loïc Dachary almost 3 years ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Actions

Also available in: Atom PDF