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 1510862 - SELinux is preventing snapperd from 'rmdir' accesses on the directory 44.
Summary: SELinux is preventing snapperd from 'rmdir' accesses on the directory 44.
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 26
Hardware: x86_64
OS: Unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
Whiteboard: abrt_hash:721d1ffdc646b90ab148f0a8a2e...
Depends On:
TreeView+ depends on / blocked
Reported: 2017-11-08 10:37 UTC by sirjacek
Modified: 2017-11-11 19:37 UTC (History)
5 users (show)

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

Attachments (Terms of Use)

Description sirjacek 2017-11-08 10:37:46 UTC
Description of problem:
Problem happend every hours . when system generate new snap and remove old . from  dnf-plugins-extras-common
Problrm with auto generating and auto cleaning snappshots(btrfs). 
SELinux is preventing snapperd from 'rmdir' accesses on the directory 44.

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

If you believe that snapperd should be allowed rmdir access on the 44 directory 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:user_home_dir_t:s0
Target Objects                44 [ dir ]
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.11-200.fc26.x86_64 #1 SMP Thu
                              Nov 2 18:28:35 UTC 2017 x86_64 x86_64
Alert Count                   1
First Seen                    2017-11-08 09:00:06 CET
Last Seen                     2017-11-08 09:00:06 CET
Local ID                      5445d32d-f1e0-454d-902d-4fa71d9d2da2

Raw Audit Messages
type=AVC msg=audit(1510128006.336:324): avc:  denied  { rmdir } for  pid=8321 comm="snapperd" name="44" dev="dm-0" ino=344 scontext=system_u:system_r:snapperd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:user_home_dir_t:s0 tclass=dir permissive=0

Hash: snapperd,snapperd_t,user_home_dir_t,dir,rmdir

Version-Release number of selected component:

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

Comment 1 sirjacek 2017-11-11 19:37:31 UTC
snapper directories  has wrong context after configured  new context(snapperd_data_t) for /.snapshots ansd/*/.snapshots

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