Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180428 - net-fs/nfs-utils - USE="-kerberos" ignored in initscripts
Summary: net-fs/nfs-utils - USE="-kerberos" ignored in initscripts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-31 09:38 UTC by Maurice Volaski
Modified: 2007-08-16 23:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
nfsmount.patch (nfsmount.patch,537 bytes, patch)
2007-08-12 19:20 UTC, Gilles Dartiguelongue (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maurice Volaski 2007-05-31 09:38:34 UTC
Even if the kerberos use flag for nfs-utils (v4) is set to off, the nfs client init scripts ignore the setting and try to load it

 * Starting gssd ...
/etc/init.d/rpc.gssd: line 20: /usr/sbin/rpc.gssd: No such file or direc  [ !! ]
 * Starting svcgssd ...
/etc/init.d/rpc.gssd: line 20: /usr/sbin/rpc.svcgssd: No such file or di  [ !! ]

Thus, it appears that the kerberos use flag must be on and everything else needed to use kerberos for nfs be setup in order for the nfs client v4 to work at all.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2007-05-31 09:44:55 UTC
Well, I'm no expert on this, but to me it looks like the kerberos stuff is required for the nfs4 protocol and optional for lower versions.
Comment 2 Maurice Volaski 2007-05-31 19:58:06 UTC
A new security flavor called RPCSEC_GSS, has been added, but it's optional, not required. Kerberos is one way to implement it, but it's entirely separate from the  default security flavor, which doesn't require RPCSEC_GSS.
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-08-12 19:19:06 UTC
nfs4 security features are not mandatory (krb5, spkmv3), as it can be seen on ubuntu and debian, rpc.gssd should only be started if you have a mention of GSS secured mounts in your fstab.
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-08-12 19:20:53 UTC
Created attachment 127898 [details, diff]
nfsmount.patch

this patch against nfsmount init script makes it start rpc.gssd only if there is mention of a krb5 secured mount in fstab. It matches the current behavior of debian's init script and should apply on nfs init script as well.
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2007-08-12 19:24:51 UTC
just read bug #186037, I'll need to update this patch to allow nfsv3+krb5 it seems.
Comment 6 SpanKY gentoo-dev 2007-08-16 23:33:54 UTC
nfs-utils-1.0.12-r4 only forces kerb stuff when options contains 'sec=krb'
Comment 7 SpanKY gentoo-dev 2007-08-16 23:38:59 UTC
err, make that 1.1.0-r1