Bug 1247530

Summary: snapper: perform 'restorecon' on .snapshots subvolume
Product: [Fedora] Fedora Reporter: Ondrej Kozina <okozina>
Component: snapperAssignee: Ondrej Kozina <okozina>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: abyss.7, agk, dustymabe, kakoskin, lvm-team, mgrepl, msnitzer, okozina
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: snapper-0.3.3-1.fc25 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1069312 Environment:
Last Closed: 2016-08-19 10:37:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1247532    
Bug Blocks:    

Description Ondrej Kozina 2015-07-28 09:10:25 UTC
Snapper needs a way how to set a proper selinux context on btrfs subvolumes originating in snapshot create command. Fs can't handle it on its own.

We've briefly outlined the future fix for this problem in Fedora. The fix will involve manually setting/restoring types for .snapshots directory content from within the snapperd.

Generally I need predefined source for types supposed to be set in .snapshots directory.

Comment 1 Jan Kurik 2016-02-24 15:50:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase

Comment 2 Ondrej Kozina 2016-03-03 12:02:04 UTC
*** Bug 1301329 has been marked as a duplicate of this bug. ***

Comment 3 Ondrej Kozina 2016-04-12 13:28:21 UTC
Awaiting review from upstream: https://github.com/openSUSE/snapper/pull/239