Bug 582257

Summary: setroubleshoot: SELinux is preventing /usr/sbin/rpc.svcgssd "write" access on nfs_0
Product: [Fedora] Fedora Reporter: Steve Dickson <steved>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.7.19-2.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-21 22:00:54 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 Steve Dickson 2010-04-14 14:00:57 UTC
Description of problem:
# sealert -l 68f0f3fb-624b-4a27-a269-34f3383d6ddb

Summary:

SELinux is preventing /usr/sbin/rpc.svcgssd "write" access on nfs_0.

Detailed Description:

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

SELinux denied access requested by rpc.svcgssd. It is not expected that this
access is required by rpc.svcgssd 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:gssd_t:s0
Target Context                unconfined_u:object_r:user_tmp_t:s0
Target Objects                nfs_0 [ file ]
Source                        rpc.svcgssd
Source Path                   /usr/sbin/rpc.svcgssd
Port                          <Unknown>
Host                          f13.home.4dicksons.org
Source RPM Packages           nfs-utils-1.2.2-2.1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.15-4.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     f13.home.4dicksons.org
Platform                      Linux f13.home.4dicksons.org
                              2.6.33.2-40.enc04.fc12.x86_64 #1 SMP Wed Apr 14
                              08:58:22 EDT 2010 x86_64 x86_64
Alert Count                   4
First Seen                    Sat Apr 10 17:17:35 2010
Last Seen                     Wed Apr 14 10:55:37 2010
Local ID                      68f0f3fb-624b-4a27-a269-34f3383d6ddb
Line Numbers                  

Raw Audit Messages            

node=f13.home.4dicksons.org type=AVC msg=audit(1271256937.670:14796): avc:  denied  { write } for  pid=1559 comm="rpc.svcgssd" name="nfs_0" dev=dm-2 ino=1639 scontext=unconfined_u:system_r:gssd_t:s0 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=file

node=f13.home.4dicksons.org type=SYSCALL msg=audit(1271256937.670:14796): arch=c000003e syscall=2 success=yes exit=4 a0=7f695be4b5a0 a1=2 a2=180 a3=7fff93a76db0 items=0 ppid=1558 pid=1559 auid=502 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=2 comm="rpc.svcgssd" exe="/usr/sbin/rpc.svcgssd" subj=unconfined_u:system_r:gssd_t:s0 key=(null)





Version-Release number of selected component (if applicable):
libselinux-python-2.0.90-5.fc13.x86_64
libselinux-2.0.90-5.fc13.x86_64
selinux-policy-3.7.15-4.fc13.noarch
libselinux-utils-2.0.90-5.fc13.x86_64
selinux-policy-targeted-3.7.15-4.fc13.noarch


How reproducible:
all the time 

Steps to Reproduce:
1. uncomment SECURE_NFS="yes" in /etc/sysconfig/nfs
2. service nfs start

Comment 1 Daniel Walsh 2010-04-14 14:09:14 UTC
This was dontaudited in the current policy,  But I believe it should be allowed, since I think this is gssd writing a ticket to the credential cache.


Fixed in selinux-policy-3.7.19-1.fc13.noarch

Comment 2 Fedora Update System 2010-04-19 02:41:14 UTC
selinux-policy-3.7.19-2.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-2.fc13

Comment 3 Fedora Update System 2010-04-20 13:25:26 UTC
selinux-policy-3.7.19-2.fc13 has been pushed to the Fedora 13 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.7.19-2.fc13

Comment 4 Fedora Update System 2010-04-21 21:59:28 UTC
selinux-policy-3.7.19-2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.