From owner-svn-src-all@FreeBSD.ORG Mon Feb 27 09:00:54 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF6FF1065672; Mon, 27 Feb 2012 09:00:54 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id 8781D8FC17; Mon, 27 Feb 2012 09:00:54 +0000 (UTC) Received: from localhost (58.wheelsystems.com [83.12.187.58]) by mail.dawidek.net (Postfix) with ESMTPSA id 26A57F75; Mon, 27 Feb 2012 10:00:53 +0100 (CET) Date: Mon, 27 Feb 2012 09:59:37 +0100 From: Pawel Jakub Dawidek To: Mikolaj Golub Message-ID: <20120227085937.GD1363@garage.freebsd.pl> References: <201202261425.q1QEPm9g069102@svn.freebsd.org> <20120227082811.GC1363@garage.freebsd.pl> <864nucd5jc.fsf@in138.ua3> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EY/WZ/HvNxOox07X" Content-Disposition: inline In-Reply-To: <864nucd5jc.fsf@in138.ua3> X-OS: FreeBSD 10.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Konstantin Belousov Subject: Re: svn commit: r232181 - in head/sys: kern sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2012 09:00:55 -0000 --EY/WZ/HvNxOox07X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 27, 2012 at 10:49:59AM +0200, Mikolaj Golub wrote: >=20 > On Mon, 27 Feb 2012 09:28:11 +0100 Pawel Jakub Dawidek wrote: >=20 > PJD> On Sun, Feb 26, 2012 at 02:25:48PM +0000, Mikolaj Golub wrote: > >> Author: trociny > >> Date: Sun Feb 26 14:25:48 2012 > >> New Revision: 232181 > >> URL: http://svn.freebsd.org/changeset/base/232181 > >>=20 > >> Log: > >> Add sysctl to retrieve or set umask of another process. >=20 > PJD> "set umask of another process"? This seems... weird. What's the pur= pose > PJD> of this change? >=20 > When we were discussing this with Kostik and Robert, and I asked if it co= uld > be useful to have the sysctl rw, Kostik described a real situation when h= e had > had to change umask of another process: umask had not been set properly o= n an > aplication start but it could not be restarted until the end of the day. > Kostik was able to fix it using gdb but having an easier way looked usefu= l. As a debugging feature it might be useful, but I wonder if we don't open Pandora's box, as I can see the same arguments for being able to change process current working directory, its real/effective/saved uid/gid, its groups, etc. Application can get really confused by this. From what I see we require the process to have permission to debug the target process, which is fine, but wherever it is documented I'd like there be a warning this is for debug purposes and can confuse application. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://tupytaj.pl --EY/WZ/HvNxOox07X Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk9LRfgACgkQForvXbEpPzRxAgCgj+2KdqWT9VW3M+W5eE02ldpU zkQAnjAykxiGlnkZjDXHZqRoT7JEL7Z6 =jAZN -----END PGP SIGNATURE----- --EY/WZ/HvNxOox07X--