Bug 696256

Summary: SELinux is preventing /sbin/rpc.statd from 'module_request' accesses on the system Unknown.
Product: [Fedora] Fedora Reporter: Nikita Bige <bignikita>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: alex.mail.1534, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:f4c2d2d5e3762f06a8134cc7d25a08a78311e0bd67042249082ed8245c5d6830
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-13 18:17:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Nikita Bige 2011-04-13 17:36:33 UTC
SELinux is preventing /sbin/rpc.statd from 'module_request' accesses on the system Unknown.

*****  Plugin catchall_boolean (89.3 confidence) suggests  *******************

If you want to allow all domains to have the kernel load modules
Then you must tell SELinux about this by enabling the 'domain_kernel_load_modules' boolean.
Do
setsebool -P domain_kernel_load_modules 1

*****  Plugin catchall (11.6 confidence) suggests  ***************************

If you believe that rpc.statd should be allowed module_request access on the Unknown system by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep rpc.statd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:rpcd_t:s0
Target Context                system_u:system_r:kernel_t:s0
Target Objects                Unknown [ system ]
Source                        rpc.statd
Source Path                   /sbin/rpc.statd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           nfs-utils-1.2.3-5.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-37.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.12-88.fc14.x86_64 #1 SMP Thu Mar
                              31 21:21:57 UTC 2011 x86_64 x86_64
Alert Count                   3
First Seen                    Thu 07 Apr 2011 12:01:40 AM MSD
Last Seen                     Tue 12 Apr 2011 11:14:18 PM MSD
Local ID                      d714e223-78d7-47cb-9a2b-d6e8fb200167

Raw Audit Messages
type=AVC msg=audit(1302635658.883:11): avc:  denied  { module_request } for  pid=1434 comm="rpc.statd" kmod="net-pf-10" scontext=system_u:system_r:rpcd_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=system


type=SYSCALL msg=audit(1302635658.883:11): arch=x86_64 syscall=socket success=yes exit=ENOEXEC a0=a a1=1 a2=6 a3=7fe49ab129a0 items=0 ppid=1433 pid=1434 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=rpc.statd exe=/sbin/rpc.statd subj=system_u:system_r:rpcd_t:s0 key=(null)

Hash: rpc.statd,rpcd_t,kernel_t,system,module_request

audit2allow

#============= rpcd_t ==============
#!!!! This avc can be allowed using the boolean 'domain_kernel_load_modules'

allow rpcd_t kernel_t:system module_request;

audit2allow -R

#============= rpcd_t ==============
#!!!! This avc can be allowed using the boolean 'domain_kernel_load_modules'

allow rpcd_t kernel_t:system module_request;

Comment 1 Daniel Walsh 2011-04-13 18:17:20 UTC
Did you disable ipv6?  If so how?

*** This bug has been marked as a duplicate of bug 641836 ***