From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 49548158089 for ; Wed, 4 Oct 2023 19:13:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8B91C2BC025; Wed, 4 Oct 2023 19:13:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7744A2BC025 for ; Wed, 4 Oct 2023 19:13:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A5F9D335CDF for ; Wed, 4 Oct 2023 19:13:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E8F24931 for ; Wed, 4 Oct 2023 19:13:11 +0000 (UTC) From: "Andreas K. Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas K. Hüttel" Message-ID: <1696446759.24fb5ce5969716045eabc6bd216104c59c94917b.dilfridge@gentoo> Subject: [gentoo-commits] proj/toolchain/glibc-patches:master commit in: 9999/ X-VCS-Repository: proj/toolchain/glibc-patches X-VCS-Files: 9999/0010-disable-tunables-in-AT_SECURE.patch X-VCS-Directories: 9999/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: 24fb5ce5969716045eabc6bd216104c59c94917b X-VCS-Branch: master Date: Wed, 4 Oct 2023 19:13:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 64691568-a771-494a-9d8c-ccf83093e3c2 X-Archives-Hash: 96bcfad174efb2b217446f57f291b097 commit: 24fb5ce5969716045eabc6bd216104c59c94917b Author: Andreas K. Hüttel gentoo org> AuthorDate: Wed Oct 4 19:12:39 2023 +0000 Commit: Andreas K. Hüttel gentoo org> CommitDate: Wed Oct 4 19:12:39 2023 +0000 URL: https://gitweb.gentoo.org/proj/toolchain/glibc-patches.git/commit/?id=24fb5ce5 Add patch from altlinux that disables tunable parsing on setuid Signed-off-by: Andreas K. Hüttel gentoo.org> 9999/0010-disable-tunables-in-AT_SECURE.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/9999/0010-disable-tunables-in-AT_SECURE.patch b/9999/0010-disable-tunables-in-AT_SECURE.patch new file mode 100644 index 0000000..4307c89 --- /dev/null +++ b/9999/0010-disable-tunables-in-AT_SECURE.patch @@ -0,0 +1,27 @@ +From 5d1686416ab766f3dd0780ab730650c4c0f76ca9 Mon Sep 17 00:00:00 2001 +From: Gleb Fotengauer-Malinovskiy +Date: Wed, 20 Sep 2023 05:00:00 +0000 +Subject: [PATCH] elf/dl-tunables.c: avoid processing of tunables in AT_SECURE executables + +Complements: owl-alt-sanitize-env +--- + elf/dl-tunables.c | 3 +++ + 1 files changed, 3 insertions(+), 0 deletions(-) + +diff --git a/elf/dl-tunables.c b/elf/dl-tunables.c +index 62b7332..e5e9093 100644 +--- a/elf/dl-tunables.c ++++ b/elf/dl-tunables.c +@@ -274,6 +274,9 @@ __tunables_init (char **envp) + size_t len = 0; + char **prev_envp = envp; + ++ if (__glibc_unlikely (__libc_enable_secure)) ++ return; ++ + maybe_enable_malloc_check (); + + while ((envp = get_next_env (envp, &envname, &len, &envval, +-- +1.7.3.3 +