Re: Last NSS commit is very dangerous
From: Jacques A. Vidrine (nectar_at_FreeBSD.org)
Date: 04/01/04
- Previous message: Andrey Chernov: "Re: Last NSS commit is very dangerous"
- In reply to: Andrey Chernov: "Re: Last NSS commit is very dangerous"
- Next in thread: Andrey Chernov: "Re: Last NSS commit is very dangerous"
- Reply: Andrey Chernov: "Re: Last NSS commit is very dangerous"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 1 Apr 2004 10:32:58 -0600 To: Andrey Chernov <ache@nagual.pp.ru>, current@freebsd.org
On Thu, Apr 01, 2004 at 08:04:31PM +0400, Andrey Chernov wrote:
> On Wed, Mar 31, 2004 at 12:39:21PM -0600, Jacques A. Vidrine wrote:
> > I'd really like DETAILS from anyone else encountering any difficulties
> > after yesterday's NSS commit. I have so far been unable to reproduce
> > the issue, nor has the patch submitter been able to reproduce it.
>
> I found exact reason (which also explain why nobody still not been
> hitted). Somehow while editing my /etc/nsswitch.conf access mode becomes
> 0600 while owned by root, i.e. no access from user programs. It
> immediately case bugs I describe.
Thank you very much for investigating further!
> But previous NSS variant can handle this unreadable
> /etc/nsswitch.conf nicely, probably using defaults.
I believe you are mistaken. Are you 100% certain that revision 1.10 of
nsdispatch.c falls back to defaults if /etc/nsswitch.conf exists but is
unreadable? I believe that in this case, the result has always been to
return NS_UNAVAIL for all nsdispatch() requests.
> I think new variant should be fixed to do the same.
I believe that the ``new variant'' behaves exactly as it has since
before 5.2-RELEASE in this case.
> Unreadable /etc/nsswitch.conf is not enough reason to stop working.
``unreadable /etc/nsswitch.conf'' is a different situation than ``no
/etc/nsswitch.conf''. The latter means ``gimme the defaults''. The
former means ``disable NSS''.
I'm willing to listen to arguments that these two situations should be
treated exactly the same.
Cheers,
-- Jacques Vidrine / nectar@celabo.org / jvidrine@verio.net / nectar@freebsd.org _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
- Previous message: Andrey Chernov: "Re: Last NSS commit is very dangerous"
- In reply to: Andrey Chernov: "Re: Last NSS commit is very dangerous"
- Next in thread: Andrey Chernov: "Re: Last NSS commit is very dangerous"
- Reply: Andrey Chernov: "Re: Last NSS commit is very dangerous"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|