Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1510584

Summary: SELinux is preventing snapperd from 'relabelfrom' accesses on the file info.xml.
Product: [Fedora] Fedora Reporter: sirjacek
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d8b044c4b7ff8b3cee8da8dabce03e8050cf7ef9530280baf0cdd41f391e0996;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-11 19:32:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description sirjacek 2017-11-07 17:43:53 UTC
Description of problem:
after create  file  /.autorelabel 
SELinux is preventing snapperd from 'relabelfrom' accesses on the file info.xml.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that snapperd should be allowed relabelfrom access on the info.xml file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# ausearch -c 'snapperd' --raw | audit2allow -M my-snapperd
# semodule -X 300 -i my-snapperd.pp

Additional Information:
Source Context                system_u:system_r:snapperd_t:s0-s0:c0.c1023
Target Context                system_u:object_r:snapperd_data_t:s0
Target Objects                info.xml [ file ]
Source                        snapperd
Source Path                   snapperd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-260.13.fc26.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.13.10-200.fc26.x86_64 #1 SMP Fri
                              Oct 27 15:34:40 UTC 2017 x86_64 x86_64
Alert Count                   22
First Seen                    2017-11-07 18:31:42 CET
Last Seen                     2017-11-07 18:31:42 CET
Local ID                      f6bd576e-4316-4fb2-8b4c-b60f5ff39271

Raw Audit Messages
type=AVC msg=audit(1510075902.135:325): avc:  denied  { relabelfrom } for  pid=4212 comm="snapperd" name="info.xml" dev="dm-0" ino=339 scontext=system_u:system_r:snapperd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:snapperd_data_t:s0 tclass=file permissive=0

Hash: snapperd,snapperd_t,snapperd_data_t,file,relabelfrom

Version-Release number of selected component:

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.13.10-200.fc26.x86_64
type:           libreport

Potential duplicate: bug 1465729

Comment 1 sirjacek 2017-11-11 19:32:53 UTC
changed context snapshot folder to snapperd_data_t