Bug 390771

Summary: rsync server doesn't work
Product: Red Hat Enterprise Linux 5 Reporter: Orion Poplawski <orion>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 5.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2008-0465 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-21 16:06:10 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 Orion Poplawski 2007-11-19 17:51:38 UTC
Description of problem:

Running rsync daemons from xinetd, I get:


type=AVC msg=audit(1195494511.811:620538): avc:  denied  { dac_override } for 
pid=26101 comm="rsync" capability=1 scontext=system_u:system_r:rsync_t:s0
tcontext=system_u:system_r:rsync_t:s0 tclass=capability
type=AVC msg=audit(1195494511.811:620538): avc:  denied  { dac_read_search } for
 pid=26101 comm="rsync" capability=2 scontext=system_u:system_r:rsync_t:s0
tcontext=system_u:system_r:rsync_t:s0 tclass=capability

and the rsync daemon cannot chdir to the proper directory.

Version-Release number of selected component (if applicable):
selinux-policy-2.4.6-106.el5.3  (built on rhel5, not 5.1)

How reproducible:
everytime

Comment 1 Daniel Walsh 2007-11-19 19:04:28 UTC
You can add these rules using audit2allow.

I will add these permissions in u2.



Comment 2 RHEL Program Management 2007-11-19 19:14:23 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 3 Daniel Walsh 2007-11-26 16:51:32 UTC
Fixed in selinux-policy-2.4.6-107.el5

Comment 4 Jay Turner 2007-11-30 07:33:02 UTC
QE ack for RHEL5.2.  Reproducer in comment 0.

Comment 8 errata-xmlrpc 2008-05-21 16:06:10 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0465.html