Bug 913194 - selinux blocking rsync from opening rsync.log file
Summary: selinux blocking rsync from opening rsync.log file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted
Version: 18
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-20 15:58 UTC by David Highley
Modified: 2013-03-03 22:43 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-03 22:43:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description David Highley 2013-02-20 15:58:13 UTC
Description of problem:
Selinux is blocking the rsync process from opening and probably writing to its own log file.

Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.11.1-79.fc18.noarch

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Can work around issue by,  setsebool -P rsync_full_access on, but do not believe this is what we want for a solution to this issue. Did check the label on the log file and it is correct.

----
time->Wed Feb 20 00:59:01 2013
type=SYSCALL msg=audit(1361350741.653:779): arch=c000003e syscall=2 success=no exit=-13 a0=15c2af0 a1=441 a2=1b6 a3=238 items=0 ppid=1 pid=32577 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)
type=AVC msg=audit(1361350741.653:779): avc:  denied  { open } for  pid=32577 comm="rsync" path="/var/log/rsyncd.log" dev="dm-1" ino=204005366 scontext=system_u:system_r:rsync_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=file
----
time->Wed Feb 20 01:00:01 2013
type=SYSCALL msg=audit(1361350801.331:782): arch=c000003e syscall=2 success=no exit=-13 a0=873af0 a1=441 a2=1b6 a3=238 items=0 ppid=1 pid=32601 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)
type=AVC msg=audit(1361350801.331:782): avc:  denied  { open } for  pid=32601 comm="rsync" path="/var/log/rsyncd.log" dev="dm-1" ino=204005366 scontext=system_u:system_r:rsync_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=file

Comment 1 Daniel Walsh 2013-02-22 12:52:07 UTC
/var/log/rsync\.log.*	--	gen_context(system_u:object_r:rsync_log_t,s0)

We currently have labeling for rsync.log not rsyncd.log

Comment 2 Daniel Walsh 2013-02-22 12:53:47 UTC
44782682654014f0e2f0a116eb357aee63cbfdbf fixes this in Rawhide.

Comment 3 Miroslav Grepl 2013-02-25 15:09:32 UTC
Backported.

Comment 4 Fedora Update System 2013-03-01 13:07:07 UTC
selinux-policy-3.11.1-82.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-82.fc18

Comment 5 Fedora Update System 2013-03-02 20:16:41 UTC
Package selinux-policy-3.11.1-82.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-82.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3309/selinux-policy-3.11.1-82.fc18
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-03-03 22:43:49 UTC
selinux-policy-3.11.1-82.fc18 has been pushed to the Fedora 18 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.