Bug 576077 - SELinux is preventing /usr/bin/rsync "getattr" access on /Julz/.icedteaplugin/icedtea-plugin-to-appletviewer.
Summary: SELinux is preventing /usr/bin/rsync "getattr" access on /Julz/.icedteap...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:a9394e8d3af...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-23 07:36 UTC by geoffs_aus
Modified: 2010-04-09 01:23 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.6.32-108.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-04-09 01:23:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description geoffs_aus 2010-03-23 07:36:13 UTC
Summary:

SELinux is preventing /usr/bin/rsync "getattr" access on
/Julz/.icedteaplugin/icedtea-plugin-to-appletviewer.

Detailed Description:

SELinux denied access requested by rsync. It is not expected that this access is
required by rsync and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:rsync_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:nsplugin_home_t:s0
Target Objects                /Julz/.icedteaplugin/icedtea-plugin-to-
                              appletviewer [ fifo_file ]
Source                        rsync
Source Path                   /usr/bin/rsync
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           rsync-3.0.7-2.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-103.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.32.9-70.fc12.i686.PAE #1 SMP Wed
                              Mar 3 04:57:21 UTC 2010 i686 i686
Alert Count                   4
First Seen                    Fri 19 Mar 2010 07:01:33 PM EST
Last Seen                     Tue 23 Mar 2010 11:01:24 AM EST
Local ID                      913e94c2-1f9e-4eb7-9c41-c465d6f2d56e
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1269306084.926:249): avc:  denied  { getattr } for  pid=15720 comm="rsync" path="/Julz/.icedteaplugin/icedtea-plugin-to-appletviewer" dev=dm-0 ino=393982 scontext=system_u:system_r:rsync_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:nsplugin_home_t:s0 tclass=fifo_file

node=(removed) type=SYSCALL msg=audit(1269306084.926:249): arch=40000003 syscall=196 success=no exit=-13 a0=bfef5eac a1=bfef4e4c a2=c3eff4 a3=0 items=0 ppid=1279 pid=15720 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-s0:c0.c1023 key=(null)



Hash String generated from  catchall,rsync,rsync_t,nsplugin_home_t,fifo_file,getattr
audit2allow suggests:

#============= rsync_t ==============
allow rsync_t nsplugin_home_t:fifo_file getattr;

Comment 1 Daniel Walsh 2010-03-23 11:42:28 UTC
How do  you have rsync setup?

Comment 2 geoffs_aus 2010-03-25 04:31:14 UTC
The following is the contents of rsyncd.conf - hope this gives you all the info you need...

max connections = 4
log file = var/log/rsync.log
timeout = 300

[etc]
	comment = Share for BackupPC backup process
	path = /etc
	read only = yes
	list = yes
	uid = root
	gid = root
	auth users = backupusr
	secrets file = /etc/rsyncd.secrets

[home]
	comment = Share for BackupPC backup process
	path = /home
	read only = yes
	list = yes
	uid = root
	gid = root
	auth users = backupusr
	secrets file = /etc/rsyncd.secrets

Comment 3 Daniel Walsh 2010-03-25 17:46:37 UTC
Miroslav,
Add

	files_getattr_all_pipes(rsync_t)

To rsync_export_all_ro.

Comment 4 Miroslav Grepl 2010-03-26 06:51:11 UTC
Fixed in selinux-policy-3.6.32-107.fc12

Comment 5 Fedora Update System 2010-03-30 19:47:23 UTC
selinux-policy-3.6.32-108.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-108.fc12

Comment 6 Fedora Update System 2010-04-01 01:53:20 UTC
selinux-policy-3.6.32-108.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-108.fc12

Comment 7 Fedora Update System 2010-04-09 01:22:58 UTC
selinux-policy-3.6.32-108.fc12 has been pushed to the Fedora 12 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.