This service will be undergoing maintenance at 20:00 UTC, 2017-04-03. It is expected to last about 30 minutes
Bug 157946 - nfsv4 kerberos fails with enforcing on
nfsv4 kerberos fails with enforcing on
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
4
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-17 07:54 EDT by Michael Young
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 1.25.4-10.1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-09-15 11:56:01 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Michael Young 2005-05-17 07:54:11 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050512 Fedora/1.0.4-2 Firefox/1.0.4

Description of problem:
With enforcing on, the mount
mount -t nfs4 -o sec=krb5,ro host:/path/to/mount /mnt/mnt
hangs with errors like
May 17 12:25:25 xxx rpc.gssd[1891]: ERROR: can't open clnt0/info: Permission denied
May 17 12:25:25 xxx rpc.gssd[1891]: ERROR: failed to read service info
May 17 12:25:25 xxx kernel: audit(1116329125.396:0): avc:  denied  { read } for  name=info dev=rpc_pipefs ino=2 scontext=system_u:system_r:gssd_t tcontext=system_u:object_r:rpc_pipefs_t tclass=file

With enforcing off it works with warnings

May 17 12:44:38 xxx kernel: audit(1116330278.901:0): avc:  denied  { read } for  name=info dev=rpc_pipefs ino=2 scontext=system_u:system_r:gssd_t tcontext=system_u:object_r:rpc_pipefs_t tclass=file
May 17 12:44:39 xxx kernel: audit(1116330279.045:0): avc:  denied  { setuid } for  capability=7 scontext=system_u:system_r:gssd_t tcontext=system_u:system_r:gssd_t tclass=capability

The file in question is /var/lib/nfs/rpc_pipefs/nfs/clnt0/info (clnt1-clnt3 at least are also possible).

Version-Release number of selected component (if applicable):
selinux-policy-targeted-1.23.14-2

How reproducible:
Always

Steps to Reproduce:
1. Try the above mount command

Additional info:
Comment 1 Daniel Walsh 2005-05-18 07:42:08 EDT
Do you have any idea what executable it is trying to run that is setuid?

Dan
Comment 2 Michael Young 2005-05-18 10:48:44 EDT
There are 3 processes involved, the mount command, and the daemons rpc.idmapd
and rpc.gssd . From an strace of rpc.gssd while the mount command was run I can
see the call (in permissive mode)
setresuid32(-1,0,-1)=0
probably in utils/gssd/gssd_proc.c in the nfs-utils package if you want to look
at the code.
Comment 3 Daniel Walsh 2005-05-18 11:05:31 EDT
Fixed in selinux-policy-*-1.23.16-3

Note You need to log in before you can comment on or make changes to this bug.