From owner-cvs-src@FreeBSD.ORG Sat Mar 10 02:51:15 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F23C516A400; Sat, 10 Mar 2007 02:51:14 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 87C9D13C46B; Sat, 10 Mar 2007 02:51:13 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id D654F487F5; Sat, 10 Mar 2007 03:51:11 +0100 (CET) Received: from localhost (unknown [192.51.213.204]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 2244645CD9; Sat, 10 Mar 2007 03:51:05 +0100 (CET) Date: Sat, 10 Mar 2007 03:49:46 +0100 From: Pawel Jakub Dawidek To: Tom Rhodes Message-ID: <20070310024946.GC1246@garage.freebsd.pl> References: <200703090933.l299XJAP094201@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="R+My9LyyhiUvIEro" Content-Disposition: inline In-Reply-To: <200703090933.l299XJAP094201@repoman.freebsd.org> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/daemon daemon.8 daemon.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Mar 2007 02:51:15 -0000 --R+My9LyyhiUvIEro Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 09, 2007 at 09:33:19AM +0000, Tom Rhodes wrote: > trhodes 2007-03-09 09:33:19 UTC >=20 > FreeBSD src repository >=20 > Modified files: > usr.sbin/daemon daemon.8 daemon.c=20 > Log: > Add support for dropping privileges to a specified user and/or group. > =20 > PR: 108523 > Submitted by: Dmitri Alenitchev (original version) > Reviewed by: mpp (first reply to PR) [...] > + if (user || group) { > + if (getuid() !=3D 0) > + errx(1, "only root user is allowed to chroot " > + "and change UID/GID"); > + restrict_process(user, group); > + } chroot? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --R+My9LyyhiUvIEro Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFF8hzKForvXbEpPzQRAusWAKDvVWxuF4z5vUAY56nqEAQVIFRKSgCdHKrv xU/tezaHqLVO/uZBP/co6j0= =ZCuy -----END PGP SIGNATURE----- --R+My9LyyhiUvIEro--