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 - SELinux is preventing snapperd from 'relabelfrom' accesses on the file info.xml.
Summary: SELinux is preventing snapperd from 'relabelfrom' accesses on the file info.xml.
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 26
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:d8b044c4b7ff8b3cee8da8dabce...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-07 17:43 UTC by sirjacek
Modified: 2017-11-11 19:32 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-11 19:32:53 UTC


Attachments (Terms of Use)

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.
Do
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:
selinux-policy-3.13.1-260.13.fc26.noarch

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 
/.snapshots
/home/.snapshots 
/var/.smpashots
etc...


Note You need to log in before you can comment on or make changes to this bug.