cvs commit: src/usr.sbin/daemon daemon.8 daemon.c

Tom Rhodes trhodes at FreeBSD.org
Mon Mar 12 16:54:12 UTC 2007


On Sat, 10 Mar 2007 03:49:46 +0100
Pawel Jakub Dawidek <pjd at FreeBSD.org> wrote:

> On Fri, Mar 09, 2007 at 09:33:19AM +0000, Tom Rhodes wrote:
> > trhodes     2007-03-09 09:33:19 UTC
> > 
> >   FreeBSD src repository
> > 
> >   Modified files:
> >     usr.sbin/daemon      daemon.8 daemon.c 
> >   Log:
> >   Add support for dropping privileges to a specified user and/or group.
> >   
> >   PR:             108523
> >   Submitted by:   Dmitri Alenitchev <dmitri at dworlds.ru> (original version)
> >   Reviewed by:    mpp (first reply to PR)
> [...]
> > +	if (user || group) {
> > +		if (getuid() != 0)
> > +			errx(1, "only root user is allowed to chroot "
> > +			    "and change UID/GID");
> > +		restrict_process(user, group);
> > +	}
> 
> chroot?

Typo, of course.  And I'm sorry for the lateness in my reply here,
and figured you should get a follow up.  I've implemented the
changes Robert has requested and sent him a patch for review.
He's busy, but promised me he would look over it soon.  Thanks,

-- 
Tom Rhodes


More information about the cvs-src mailing list