From nobody Fri Mar 10 21:27:05 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PYJzN73NDz3xxlm for ; Fri, 10 Mar 2023 21:27:12 +0000 (UTC) (envelope-from seafork@disroot.org) Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PYJzN03vPz4R6b for ; Fri, 10 Mar 2023 21:27:11 +0000 (UTC) (envelope-from seafork@disroot.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=disroot.org header.s=mail header.b=Rq51MkBt; spf=pass (mx1.freebsd.org: domain of seafork@disroot.org designates 178.21.23.139 as permitted sender) smtp.mailfrom=seafork@disroot.org; dmarc=pass (policy=reject) header.from=disroot.org Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id F207144540 for ; Fri, 10 Mar 2023 22:27:09 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mFZLr9hfe3iR for ; Fri, 10 Mar 2023 22:27:09 +0100 (CET) To: freebsd-hackers@freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1678483629; bh=jhsyWHhwBZEcaNJLq2ZZxwXNfC/gkmmaLKjcyz3F004=; h=To:From:Subject:Date; b=Rq51MkBtpyiAkYDVbxt1UtKIzfOEGDuu4iTyAoGz3WHsSeEs/uzVMkVKzPdMM2YXh ibV5Bq5yhTcD8ClQkwFVcPwSfevqhB6zGZZcc4saMLC6GYbXG55Z83B0o1tVqDS+lV d6CAr1sX+d8Q+bGsSztSrgFPdOPKL4i3EQzZ+jtdQBwSBbQ12KrJVHjgukvtQhupcR IbVikyFf4ce/dEoS2HwtfXCW46Plcok+c88+1NxPIqbAG56ZFv7uFHF8pzPY3DgmgJ 0MKENZEsDPchJRK25SC7jOj7t2mG8ks9dUrStVCoc5qPg91sAtpCs9LuDVhFOVqjHh tGbCfGb3/BTrQ== From: Lucy Marsh Subject: Adding the secure_getenv call to FreeBSD's libc Message-ID: <64fc1989-aa35-7a5f-fc0a-bc649b68ecee@disroot.org> Date: Fri, 10 Mar 2023 16:27:05 -0500 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[disroot.org,reject]; R_SPF_ALLOW(-0.20)[+a]; R_DKIM_ALLOW(-0.20)[disroot.org:s=mail]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[disroot.org:+]; ARC_NA(0.00)[]; ASN(0.00)[asn:50673, ipnet:178.21.23.0/24, country:NL]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4PYJzN03vPz4R6b X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N Dear FreeBSD Hackers, I was wondering if adding the glibc extension call, `secure_getenv`, to FreeBSD's libc is allowed. Obviously, this would not only need to be permitted but also wanted. In that latter department, I could see the need arise for `secure_getenv` when porting applications written for Linux as they are often written targeting glibc. Also, this addition would bring us more inline with other libc implementations such as musl libc. Thank you for your time, Lucy