Bug 637135

Summary: SELinux is preventing /usr/sbin/rpc.rquotad "quotamod" access
Product: Red Hat Enterprise Linux 6 Reporter: Milos Malik <mmalik>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: mgrepl
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.7.19-56.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 11:56:35 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 Milos Malik 2010-09-24 12:29:35 UTC
Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by rpc.rquotad. It is not expected that this
access is required by rpc.rquotad 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                unconfined_u:system_r:rpcd_t:s0
Target Context                system_u:object_r:fs_t:s0
Target Objects                None [ filesystem ]
Source                        rpc.rquotad
Source Path                   /usr/sbin/rpc.rquotad
Port                          <Unknown>
Host                          localhost.localdomain
Source RPM Packages           quota-3.17-10.el6
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-55.el6
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     localhost.localdomain
Platform                      Linux localhost.localdomain 2.6.32-71.el6.i686 #1
                              SMP Wed Sep 1 01:26:34 EDT 2010 i686 i686
Alert Count                   1
First Seen                    Fri Sep 24 14:13:44 2010
Last Seen                     Fri Sep 24 14:13:44 2010
Local ID                      33b1ec0b-c4d5-42e2-8fe3-2fadcd83718c
Line Numbers                  

Raw Audit Messages            

node=localhost.localdomain type=AVC msg=audit(1285330424.781:233): avc:  denied  { quotamod } for  pid=5304 comm="rpc.rquotad" scontext=unconfined_u:system_r:rpcd_t:s0 tcontext=system_u:object_r:fs_t:s0 tclass=filesystem

node=localhost.localdomain type=SYSCALL msg=audit(1285330424.781:233): arch=40000003 syscall=131 success=yes exit=0 a0=80000800 a1=277ed70 a2=1f8 a3=bfe5e40c items=0 ppid=1 pid=5304 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=2 comm="rpc.rquotad" exe="/usr/sbin/rpc.rquotad" subj=unconfined_u:system_r:rpcd_t:s0 key=(null)

Comment 2 Milos Malik 2010-09-24 12:33:39 UTC
The AVC is a byproduct of automated /CoreOS/quota/Regression/bz469753-Enable-remote-quota-support test.

Comment 3 Daniel Walsh 2010-09-24 13:35:23 UTC
Miroslav for RHEL6 we should just allow this. Going forward we should think about adding a policy specify to rpc.quotad.

Comment 4 Miroslav Grepl 2010-10-06 08:36:32 UTC
Fixed in selinux-policy-3.7.19-56.el6.noarch

Comment 9 errata-xmlrpc 2011-05-19 11:56:35 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 therefore 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-2011-0526.html