This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2] nss: Make nsswitch.conf more distribution friendly.
* Carlos O'Donell:
> On 3/20/19 12:58 PM, Florian Weimer wrote:
>> * Carlos O'Donell:
>>
>>> +# An example Name Service Switch config file. This file should be
>>> +# sorted with the most-used services at the beginning.
>>
>> The example file itself doesn't seem to follow this.
>
> I noticed that netmasks, automount, and bootparams are not handled by
> glibc, but listed in the nsswitch.conf. Are these handled by some other
> application which parses /etc/nsswitch.conf? I'm not aware of any that
> do so, and so I've removed them.
>
> We never got around to implementing the accessor functions for them,
> and only added publickey. I cleaned up the docs and referenced the info
> docs from the default nsswitch.conf.
I think we should only list what is actually implemented in glibc.
sudo uses /etc/nsswitch.conf for a custom database, too, if I recall
correctly.
This is possible because the glibc parser simply ignores unknown
entries.
> +# In order of most-used services first.
> +passwd: files
> +group: files
> +hosts: files dns
> +networks: files dns
> +initgroups: files
> +shadow: files
> +gshadow: files
> +netgroup: files
> +services: files
> +protocols: files
> +ethers: files
> +aliases: files
> +rpc: files
> +publickey: files
I fear we can discuss this to death. I would suggest alphabetic order
to avoid that.
I have no further comments on the patch.