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=-3.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,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 CC04625336 for ; Mon, 11 Mar 2024 01:47:06 +0100 (CET) Received: (qmail 20355 invoked by uid 550); 11 Mar 2024 00:42:58 -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 20320 invoked from network); 11 Mar 2024 00:42:57 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710118009; bh=8+70zbpgan4OoWRzoOGKfrNi/ZknzuGRV9o1SOH0Yjw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=et81+xPI9RKP/uHIo5yJolXexPc4w1wDE39fa5X6P4npN9RY1GTQS+Gy3lrw/mJXw r8LNCViiRpnspIiQTshC0xigc2wapeM7Ex/BFxIZbQXaRoDcqkcMTKmxHI1NHvXuEz QHkb1e0RvA3PBpN9v0pqky5js5NyNwuXoyZWYv7ZEP1WXHebxNs0X0P7hsSOhGPw0G 0hXMrpPjFJFxEapsdb6eAytCM7lKdgDGYFUAC7x6yK0NXNxZxTxEMGRrOMVoAMy2RQ k/jsZPAcHMneQSm1vUEhZBIM05Gvi1cubCAMIKRyK/j1SW2Cpj1o9er9GNjkIjyVcM NNYL6BzDEp8cA== Date: Mon, 11 Mar 2024 01:46:44 +0100 From: Alejandro Colomar To: Thorsten Glaser Cc: Rich Felker , musl@lists.openwall.com, NRK , Guillem Jover , libc-alpha@sourceware.org, libbsd@lists.freedesktop.org, "Serge E. Hallyn" , "Skyler Ferrante (RIT Student)" , Iker Pedrosa , Christian Brauner Message-ID: References: <20240309150258.GS4163@brightrain.aerifal.cx> <20240310193956.GU4163@brightrain.aerifal.cx> <20240310234410.GW4163@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RxOp564cSRccqHWJ" Content-Disposition: inline In-Reply-To: Subject: Re: [musl] Re: Tweaking the program name for functions --RxOp564cSRccqHWJ Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Date: Mon, 11 Mar 2024 01:46:44 +0100 From: Alejandro Colomar To: Thorsten Glaser Cc: Rich Felker , musl@lists.openwall.com, NRK , Guillem Jover , libc-alpha@sourceware.org, libbsd@lists.freedesktop.org, "Serge E. Hallyn" , "Skyler Ferrante (RIT Student)" , Iker Pedrosa , Christian Brauner Subject: Re: [musl] Re: Tweaking the program name for functions Hi Thorsten, On Mon, Mar 11, 2024 at 12:19:27AM +0000, Thorsten Glaser wrote: > Rich Felker dixit: >=20 > >the string literal, because the string literal appears in modular > >library code that gets called from multiple utilities, then printing > >an error message (and even worse, exiting, if you do that too), rather > >than returning meaningful error information up to the caller for it to > >handle/display, is just really sloppy, low-quality programming. >=20 > Libraries totally should not call exit and thus not err/errx, > and warn/warnx is=E2=80=A6 also questionable at best. >=20 > But modularised code that builds a shared object and a few > binaries using it? Why not. >=20 > The thing I don=E2=80=99t get is why changing __progname is desired, > but I guess everyone has use cases for something. setuid programs. Consider that a setuid program accidentally opens a privileged file in fd 2. Now what happens if a random user can trigger that accident, and write arbitrary text to a privileged file, just by calling that setuid program with execlp("su", "inject this stuff", ...)? Bad stuff. Have a lovely night! Alex >=20 > bye, > //mirabilos > --=20 > (gnutls can also be used, but if you are compiling lynx for your own use, > there is no reason to consider using that package) > -- Thomas E. Dickey on the Lynx mailing list, about OpenSSL --=20 --RxOp564cSRccqHWJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6jqH8KTroDDkXfJAnowa+77/2zIFAmXuVHQACgkQnowa+77/ 2zImOA/+O3JLZrluMMCLmzct+U3sbiFeQy4SpHOB5EJ7c+RHFrTKZy3EcLqO1Kr+ YGKfs29/xEiRJXHIFp0h4SPRiUw8AcZ4dg1DZkR/efwQGPJFOncq11sG07JzpMNv DzJw13R435qcEv32K6SeQyA2pEAMW9o40wAFYTt+TsQLrtMeBvlGVP0epnEbhqkK /Uu2O0NEf8AY7+V23erV1qjtSztESrI4emy5ey/pOJpZGwtsU/8JxCkTwhuPN8fN 3Y13NrlWkPnysHVLoaExgTHbe2nmYMM5SHBkI4d6xzAqVoW28sYQk00XCITehf5t RZDP0IDk18gnj5ayFVXouWhEZ64YagHqeBjepyohdcR+W552jqkaoc1aFuHCB2kF f6LUWH8OMJlIG3CNEZOW+CgoW911l0Ua3USxe3VNY4hqkNjujYYzTTsXzsTyQber UAwUtFx0PdwxmrnT93CM3j0eETFUNAjGYXCsH74B36u3eErRqPPr0Puva78tjMUW ViIZ2desedRzQLhRgYF+MxUw+9+dXRXPX52SRidBEBI0/qWsR09KDYE+rmEXMryR sV+MgnrBmFPB1xdKnbYwJXH36Ojyh14Jg9sLYZibr1jZBOVTaZhQ2XOg8u2AzR87 ekqsmSQ4CiPcOiTXbqctAACnUCtsXYu9SQvOT0FJ+jaMiJfSedE= =B9zH -----END PGP SIGNATURE----- --RxOp564cSRccqHWJ--