From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id 57A3C2A5B1 for ; Mon, 11 Mar 2024 23:07:32 +0100 (CET) Received: (qmail 11369 invoked by uid 550); 11 Mar 2024 22:03:21 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 11346 invoked from network); 11 Mar 2024 22:03:20 -0000 Date: Mon, 11 Mar 2024 22:05:14 +0000 (UTC) From: Thorsten Glaser X-X-Sender: tg@herc.mirbsd.org To: musl@lists.openwall.com cc: "Skyler Ferrante (RIT Student)" , Andreas Schwab , Alejandro Colomar , NRK , Guillem Jover , libc-alpha@sourceware.org, libbsd@lists.freedesktop.org, "Serge E. Hallyn" , Iker Pedrosa , Christian Brauner In-Reply-To: <20240311194756.GY4163@brightrain.aerifal.cx> Message-ID: References: <20240310193956.GU4163@brightrain.aerifal.cx> <20240310234410.GW4163@brightrain.aerifal.cx> <20240311194756.GY4163@brightrain.aerifal.cx> Content-Language: de-Zsym-DE-1901-u-em-text-rg-denw-tz-utc, en-Zsym-GB-u-cu-eur-em-text-fw-mon-hc-h23-ms-metric-mu-celsius-rg-denw-tz-utc-va-posix MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Subject: Re: [musl] Re: Tweaking the program name for functions Rich Felker dixit: >POSIX explicitly permits the implementation to open these fds if they >started closed in suid execs, and IIRC indicates as a future direction AFAIR, POSIX recently clarified that when a utility isn=E2=80=99t invoked with fd#0, #1 and #2 open and suitable, the caller=E2=80=99s behaviour is n=C5=8Dn-conforming, and so the callee can probably do what it wants in that case as it=E2=80=99s left POSIX land. bye, //mirabilos --=20 =E2=80=9CIt is inappropriate to require that a time represented as seconds since the Epoch precisely represent the number of seconds between the referenced time and the Epoch.=E2=80=9D =09-- IEEE Std 1003.1b-1993 (POSIX) Section B.2.2.2