From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.devel Subject: Re: Support open-process and friends on MS-Windows Date: Sat, 02 Jul 2016 19:02:08 -0400 Message-ID: <87inwn3aq7.fsf@netris.org> References: <834m8i3off.fsf@gnu.org> <877fde958i.fsf@gnu.org> <83wple1zym.fsf@gnu.org> <83ziq9zl8l.fsf@gnu.org> <87eg7lbnpi.fsf@pobox.com> <83y45tzhyn.fsf@gnu.org> <87twghs9ot.fsf@gnu.org> <83r3blz96w.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1467500571 5621 80.91.229.3 (2 Jul 2016 23:02:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Jul 2016 23:02:51 +0000 (UTC) Cc: wingo@pobox.com, Ludovic =?utf-8?Q?Court=C3=A8s?= , guile-devel@gnu.org To: Eli Zaretskii Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Jul 03 01:02:41 2016 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bJTvt-0004id-LB for guile-devel@m.gmane.org; Sun, 03 Jul 2016 01:02:41 +0200 Original-Received: from localhost ([::1]:40417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJTvs-0003OQ-O0 for guile-devel@m.gmane.org; Sat, 02 Jul 2016 19:02:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJTve-0003OC-65 for guile-devel@gnu.org; Sat, 02 Jul 2016 19:02:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJTvb-0006B3-1K for guile-devel@gnu.org; Sat, 02 Jul 2016 19:02:26 -0400 Original-Received: from world.peace.net ([50.252.239.5]:35445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJTva-0006Aw-TO; Sat, 02 Jul 2016 19:02:22 -0400 Original-Received: from pool-71-174-37-60.bstnma.east.verizon.net ([71.174.37.60] helo=jojen) by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1bJTvM-0005K7-DJ; Sat, 02 Jul 2016 19:02:08 -0400 In-Reply-To: <83r3blz96w.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 25 Jun 2016 16:31:35 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 50.252.239.5 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:18456 Archived-At: Eli Zaretskii writes: > +# define getuid() (500) /* Local Administrator */ > +# define getgid() (513) /* None */ > +# define setuid(u) (0) > +# define setgid(g) (0) As I've said before, I'm not comfortable with these definitions. These are not operations that can be safely ignored. If we cannot do a job that's requested of us, we should raise an exception. We should not make numbers up out of thin air and pass them off as fact, nor should we claim to have successfully done a job that we are unable to do. More to the point, we should not assume that the caller's requests are unimportant. Feigning success on ignored requests and fabricating misinformation might be okay in some cases, but in other cases it is likely to lead to security holes and other bugs. For example, a common pattern is to use 'setuid' to drop privileges before running some untrusted code. We must not silently ignore such requests. Mark