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

Pawel Jakub Dawidek pjd at FreeBSD.org
Sat Mar 10 02:51:15 UTC 2007


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?

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20070310/2307b668/attachment.pgp


More information about the cvs-src mailing list