Bug 1158658 - SELinux is preventing /usr/bin/rsync from 'relabelto' accesses on the file .
Summary: SELinux is preventing /usr/bin/rsync from 'relabelto' accesses on the file .
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3451a9534e528b0d8f0452eebba...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-29 19:56 UTC by Gabriele Gualco
Modified: 2015-03-10 00:55 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-3.12.1-197.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-10 00:55:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Gabriele Gualco 2014-10-29 19:56:46 UTC
Description of problem:
SELinux is preventing /usr/bin/rsync from 'relabelto' accesses on the file .

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

If si crede che rsync dovrebbe avere possibilità di accesso relabelto sui  file in modo predefinito.
Then si dovrebbe riportare il problema come bug.
E' possibile generare un modulo di politica locale per consentire questo accesso.
Do
consentire questo accesso per il momento eseguendo:
# 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:config_home_t:s0
Target Objects                 [ file ]
Source                        rsync
Source Path                   /usr/bin/rsync
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           rsync-3.1.0-5.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-192.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.16.6-203.fc20.x86_64 #1 SMP Sat
                              Oct 25 12:44:32 UTC 2014 x86_64 x86_64
Alert Count                   758
First Seen                    2014-10-09 19:30:24 CEST
Last Seen                     2014-10-29 18:06:15 CET
Local ID                      cf6fb8e2-c20c-4086-a0ce-25258c683eaa

Raw Audit Messages
type=AVC msg=audit(1414602375.604:519): avc:  denied  { relabelto } for  pid=2870 comm="rsync" name="f_00001b" dev="tmpfs" ino=29601 scontext=system_u:system_r:rsync_t:s0 tcontext=system_u:object_r:config_home_t:s0 tclass=file permissive=0


type=SYSCALL msg=audit(1414602375.604:519): arch=x86_64 syscall=lsetxattr success=no exit=EACCES a0=7fffd31478f0 a1=7f64f9394183 a2=7f64f9394160 a3=23 items=0 ppid=2869 pid=2870 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=rsync exe=/usr/bin/rsync subj=system_u:system_r:rsync_t:s0 key=(null)

Hash: rsync,rsync_t,config_home_t,file,relabelto

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.16.6-203.fc20.x86_64
type:           libreport

Comment 1 Daniel Walsh 2015-01-02 13:48:00 UTC
68e4e52513d1954ed7b6fe1661e2de64730c754e fixes this in git.

Comment 2 Lukas Vrabec 2015-01-15 15:24:23 UTC
commit d0971ef02c16b085887544923bf6a129d032c9e7
Author: Dan Walsh <dwalsh>
Date:   Fri Jan 2 08:47:26 2015 -0500

    Allow rsync_t  to relabel files with rsync_full_access is turned on

Comment 3 Fedora Update System 2015-01-27 16:56:40 UTC
selinux-policy-3.12.1-197.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-197.fc20

Comment 4 Fedora Update System 2015-01-30 04:41:37 UTC
Package selinux-policy-3.12.1-197.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-197.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-1398/selinux-policy-3.12.1-197.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-03-10 00:55:49 UTC
selinux-policy-3.12.1-197.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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