Bug 1048043

Summary: SELinux is preventing /usr/bin/rsync from 'unlink' accesses on the fifo_file 1388530054545.
Product: [Fedora] Fedora Reporter: Paulo Fessel <pfessel>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: dominick.grift, dwalsh, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:efece8a293841d6742551f16cd18839bfa17a975d90146ddc93d04465ec7b7df
Fixed In Version: selinux-policy-3.12.1-116.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-16 07:12:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Paulo Fessel 2014-01-03 01:34:20 UTC
Description of problem:
It appears to be a backup routine of Google chrome directories.
SELinux is preventing /usr/bin/rsync from 'unlink' accesses on the fifo_file 1388530054545.

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

If você acredita que o rsync deva ser permitido acesso de unlink em 1388530054545 fifo_file  por default.
Then você precisa reportar este como um erro.
Você pode gerar um módulo de política local para permitir este acesso.
Do
permitir este acesso agora executando:
# grep rsync /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:rsync_t:s0
Target Context                system_u:object_r:mozilla_home_t:s0
Target Objects                1388530054545 [ fifo_file ]
Source                        rsync
Source Path                   /usr/bin/rsync
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           rsync-3.1.0-1pre1.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-106.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.12.5-302.fc20.x86_64 #1 SMP Tue
                              Dec 17 20:42:32 UTC 2013 x86_64 x86_64
Alert Count                   4
First Seen                    2013-12-31 15:15:08 BRST
Last Seen                     2014-01-02 22:18:17 BRST
Local ID                      73161dce-f786-4b67-94aa-d64151fa8ae9

Raw Audit Messages
type=AVC msg=audit(1388708297.504:701): avc:  denied  { unlink } for  pid=8104 comm="rsync" name="1388530054545" dev="md1" ino=37355521 scontext=system_u:system_r:rsync_t:s0 tcontext=system_u:object_r:mozilla_home_t:s0 tclass=fifo_file


type=SYSCALL msg=audit(1388708297.504:701): arch=x86_64 syscall=unlink success=yes exit=0 a0=7fffb16ed010 a1=1180 a2=0 a3=0 items=0 ppid=8103 pid=8104 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=rsync exe=/usr/bin/rsync subj=system_u:system_r:rsync_t:s0 key=(null)

Hash: rsync,rsync_t,mozilla_home_t,fifo_file,unlink

Additional info:
reporter:       libreport-2.1.10
hashmarkername: setroubleshoot
kernel:         3.12.5-302.fc20.x86_64
type:           libreport

Comment 1 Daniel Walsh 2014-01-03 18:18:15 UTC
15646c0e8036ec1690292947226a98b30fcca5d3 fixes this in git.

Comment 2 Lukas Vrabec 2014-01-04 00:29:13 UTC
back ported.

Comment 3 Fedora Update System 2014-01-13 22:57:55 UTC
selinux-policy-3.12.1-116.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-116.fc20

Comment 4 Fedora Update System 2014-01-15 05:59:29 UTC
Package selinux-policy-3.12.1-116.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-116.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0806/selinux-policy-3.12.1-116.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-01-16 07:12:34 UTC
selinux-policy-3.12.1-116.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.