[Bug 1977745] [NEW] nfs-utils/nfs-kernel-server (rpc.svcgssd) ignored /etc/nfs.conf settings
Marcel
1977745 at bugs.launchpad.net
Mon Jun 6 13:37:57 UTC 2022
Public bug reported:
Tested on:
Ubuntu 22.04 (x86_64)
Package: nfs-kernel-server 1:2.6.1-1ubuntu1
Set config options in /etc/nfs.conf are ignored by rpc.svcgssd (required
for krb5 NFSv4).
I was trying to set the principal name like:
[svcgssd]
principal=nfs/myhost.mydomain.de at MYDOMAIN.DE
but rpc.svcgssd refused to start. When specified on command line (using
the -p option) things started working.
After having a look at the code (nfs-utils-2.6.1/utils/gssd/svcgssd.c),
the problem seems to be
/* We don't need the config anymore */
conf_cleanup();
which is called too early. So at the point where gssd_acquire_cred() is
called the variable "principal" does no longer contain the data read
from the config file.
Moving conf_cleanup() to the end of the code helps.
I also tried to get into contact with the nfs-utils developer themselves
- but I hope someone at Ubuntu has a better way to contact them.
** Affects: nfs-utils (Ubuntu)
Importance: Undecided
Status: New
** Tags: nfs-kernel-server nfs-utils nfs.conf
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nfs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1977745
Title:
nfs-utils/nfs-kernel-server (rpc.svcgssd) ignored /etc/nfs.conf
settings
Status in nfs-utils package in Ubuntu:
New
Bug description:
Tested on:
Ubuntu 22.04 (x86_64)
Package: nfs-kernel-server 1:2.6.1-1ubuntu1
Set config options in /etc/nfs.conf are ignored by rpc.svcgssd
(required for krb5 NFSv4).
I was trying to set the principal name like:
[svcgssd]
principal=nfs/myhost.mydomain.de at MYDOMAIN.DE
but rpc.svcgssd refused to start. When specified on command line
(using the -p option) things started working.
After having a look at the code (nfs-
utils-2.6.1/utils/gssd/svcgssd.c), the problem seems to be
/* We don't need the config anymore */
conf_cleanup();
which is called too early. So at the point where gssd_acquire_cred()
is called the variable "principal" does no longer contain the data
read from the config file.
Moving conf_cleanup() to the end of the code helps.
I also tried to get into contact with the nfs-utils developer
themselves - but I hope someone at Ubuntu has a better way to contact
them.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1977745/+subscriptions
More information about the foundations-bugs
mailing list