From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 87BE53864830 for ; Fri, 19 Apr 2024 03:48:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 87BE53864830 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 87BE53864830 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713498501; cv=none; b=nWRWV2kMyhmXmZjbWKIG9oZqu524vaZI/ibgwUHpcK8HHXkFoejElsSvKdIz9kO7NueqSmhcYmXlQMWM2p6gKWNt0HS2bHxhtEHyHojwSa1On/GLhmWTNBKCmXbzo/OLbK2ToNaZyYM42noVzaauu+SZ69xnolok034uLA2X1Fc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713498501; c=relaxed/simple; bh=NlxYpC75q6HpCW+JCNj+f/z/asZAhBMhIgzkGB03Aa0=; h=DKIM-Signature:Date:Message-Id:From:To:Subject; b=ZL8lyI8t4zSOIPQUJWN5epwjxpvaKKaiKPjEqjZwHxOsJ5JA3tUUXBGSa5kLIEybfXV5TUiRnb62X0nX5QPJTN6Un5kvkPyeqeohgQpOV41EtwajdP6ZAirsV8ppcaHL+vVPmHDgY3ZG8+ICCgFTC9Po45VPQJGOhdzNmsrKhZo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713498499; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:content-type:content-type; bh=tfs000iJJVj8pysvPtAvuNmT6eTRFoikOJMVYDT0ZA4=; b=Xau23mha4TdKMOrBJWaeA9Nej1JoMUtdBUCaXGam0+25n7j8OC9NvmI6Z170iZ1YV1ubg/ H+bOECWhrEmkmedsrEBDH4KXNaLogKVilipTxDgOe4iMqurfPBKcjui++aHRUT7BezZMMO o0aYLc7URNpz8CnlCRoQmEbQkOQ4JBE= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-523-9ENRH_KtMVqXpWt6VFz2mw-1; Thu, 18 Apr 2024 23:48:17 -0400 X-MC-Unique: 9ENRH_KtMVqXpWt6VFz2mw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 285C638035C2 for ; Fri, 19 Apr 2024 03:48:17 +0000 (UTC) Received: from greed.delorie.com (unknown [10.22.8.231]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 14416C271B2 for ; Fri, 19 Apr 2024 03:48:17 +0000 (UTC) Received: from greed.delorie.com.redhat.com (localhost [127.0.0.1]) by greed.delorie.com (8.16.1/8.16.1) with ESMTP id 43J3mGjl1041540 for ; Thu, 18 Apr 2024 23:48:16 -0400 Date: Thu, 18 Apr 2024 23:48:16 -0400 Message-Id: From: DJ Delorie To: libc-alpha@sourceware.org Subject: [PATCH v2 0/3] System-wide tunables X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This patch series is the initial implementation of system-wide tunables, which I mentioned a few months ago. The first part has ldconfig read tunable information from /etc/tunables.conf and store it to /etc/ld.so.cache. Reusing ldconfig means no new documentation or training would be required of sysadmins, or reprogramming of distro packaging. The second part optimizes the loading of /etc/ld.so.cache and allows for it to be loaded independently of searching for libraries. The third part applies the stored tunable information to the running application. Changes since v1: fixed format bug in error() and rebased. No other changes. DJ Delorie (3): Add system-wide tunables: ldconfig part Add system-wide tunables: cache ld.so.cache Add system-wide tunables: Apply tunables part elf/Makefile | 1 + elf/cache.c | 65 +++++- elf/dl-cache.c | 276 +++++++++++++++++-------- elf/dl-tunables.c | 85 ++++++++ elf/ldconfig.c | 21 +- elf/tunconf.c | 408 +++++++++++++++++++++++++++++++++++++ elf/tunconf.h | 43 ++++ sysdeps/generic/dl-cache.h | 6 + sysdeps/generic/ldconfig.h | 2 + 9 files changed, 818 insertions(+), 89 deletions(-) create mode 100644 elf/tunconf.c create mode 100644 elf/tunconf.h -- 2.39.3