[Bug 1051262] Re: nfs-common < 1.2.6 idmapd.conf parsing errors
JiriHorky
1051262 at bugs.launchpad.net
Tue Sep 18 10:42:56 UTC 2012
Hi,
I could not resist to say that pointing at a quite common bug in a C
program (non terminating string with a 0 character) together with a link
to the fix should be enough in my opinion. As the exact result of the
idmapd behavior with this bug depends on a way glibc/kernel allocates
the memory, it may be hard to hit a problem reproducibly, but it does
not mean it is not there. I mainly writes it because the way I have hit
the problem may say too non-standard.
I came across this problem with the idmapd.conf file below with a Static
mapping plugin (that is only available in a git of libnfsidmapd that I
used via LD_LIBRARY_PATH). The problem observed was:
root at elvys:~# LD_LIBRARY_PATH=~/libnfsidmap/.libs/ rpc.idmapd -f -vvv
rpc.idmapd: libnfsidmap: Unable to determine the NFSv4 domain; Using
'localdomain' as the NFSv4 domain which means UIDs will be mapped to the
'Nobody-User' user defined in /etc/idmapd.conf
root at elvys:~# cat /etc/idmapd.conf
[General]
Verbosity = 0
Pipefs-Directory = /run/rpc_pipefs
# set your own domain here, if id differs from FQDN minus hostname
Domain = EINFRA
[Mapping]
Nobody-User = nobody
Nobody-Group = nogroup
[Translation]
Method = static, nsswitch
[Static]
uzivatel at EINFRA = lokalniuzivatel
uzivatel2 at EINFRA = jinylokalniuzivatel
storage at EINFRA = users
Regards,
Jiri Horky
On 09/18/2012 09:00 AM, Steve Langasek wrote:
> Jiri,
>
> Could you provide a reproducible test case demonstrating the problem?
>
> ** Changed in: nfs-utils (Ubuntu)
> Status: New => Fix Released
>
> ** Also affects: nfs-utils (Ubuntu Precise)
> Importance: Undecided
> Status: New
>
> ** Changed in: nfs-utils (Ubuntu Precise)
> Status: New => Triaged
>
> ** Changed in: nfs-utils (Ubuntu Precise)
> Importance: Undecided => High
>
--
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/1051262
Title:
nfs-common < 1.2.6 idmapd.conf parsing errors
Status in “nfs-utils” package in Ubuntu:
Fix Released
Status in “nfs-utils” source package in Precise:
Triaged
Bug description:
Hi,
in Ubuntu 12.04, the version 1:1.2.5-3ubuntu3 of nfs-common (nfs-
utils) suffers from the bug already reported upstream:
https://bugzilla.linux-nfs.org/show_bug.cgi?id=205
This causes failures when parsing idmapd.conf. The fix is pretty
simple and is already explained in the linked ticket. The bug is fixed
in upstream nfs-utils v1.2.6,
Cheers
Jiri Horky
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1051262/+subscriptions
More information about the foundations-bugs
mailing list