Skip site navigation (1)Skip section navigation (2)
Date:      07 Jun 1999 17:14:45 +0200
From:      Dag-Erling Smorgrav <des@flood.ping.uio.no>
To:        Mike Nowlin <mike@argos.org>
Cc:        John Baldwin <jobaldwi@vt.edu>, Wes Peters <wes@softweyr.com>, freebsd-security@FreeBSD.ORG
Subject:   Re: NIS strangeness
Message-ID:  <xzpvhd0kpp6.fsf@flood.ping.uio.no>
In-Reply-To: Mike Nowlin's message of "Sun, 6 Jun 1999 23:56:07 -0400 (EDT)"
References:  <Pine.LNX.4.05.9906062349490.4215-100000@jason.argos.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Mike Nowlin <mike@argos.org> writes:
> [test program snipped]
> If root runs this program, it SEGV's and blows up.  But if anybody else
> runs it, it comes back with 

The test program you posted doesn't do *any* error-checking... which
means that if getpwnam() fails, your program will happily try to
dereference a null pointer, hence the SIGSEGV.

As to *why* getpwnam() fails, I have no clue. It works fine for me,
both as a regular user and as root.

DES
-- 
Dag-Erling Smorgrav - des@flood.ping.uio.no


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpvhd0kpp6.fsf>