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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 75132158042 for ; Sun, 10 Nov 2024 21:54:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4B63EE087B; Sun, 10 Nov 2024 21:54:05 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 072C9E085A for ; Sun, 10 Nov 2024 21:54:05 +0000 (UTC) From: Mike Gilbert To: gentoo-dev@lists.gentoo.org Cc: base-system@gentoo.org, Mike Gilbert Subject: [gentoo-dev] [PATCH 2/2] fcaps.eclass: make binaries readable by default Date: Sun, 10 Nov 2024 16:54:01 -0500 Message-ID: <20241110215401.128418-2-floppym@gentoo.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241110215401.128418-1-floppym@gentoo.org> References: <20241110215401.128418-1-floppym@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 2ecfae20-1dda-4951-ae61-afbd74e7cbe7 X-Archives-Hash: d9b2bf08e54adefe8166b3f4c8619910 Removing the read bit from suid binaries has questionable security benefit, and may cause problems for some software. Users may override FCAPS_CAPS_MODE and FCAPS_NOCAPS_MODE should they desire the old behavior. Bug: https://bugs.gentoo.org/938164 Signed-off-by: Mike Gilbert --- eclass/fcaps.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/fcaps.eclass b/eclass/fcaps.eclass index bf05776ba760..da4a52099396 100644 --- a/eclass/fcaps.eclass +++ b/eclass/fcaps.eclass @@ -70,13 +70,13 @@ esac # @USER_VARIABLE # @DESCRIPTION: # Mode to use when capabilities are supported. -: ${FCAPS_CAPS_MODE:=0711} +: ${FCAPS_CAPS_MODE:=0755} # @ECLASS_VARIABLE: FCAPS_NOCAPS_MODE # @USER_VARIABLE # @DESCRIPTION: # Mode to use when capabilities are not supported. -: ${FCAPS_NOCAPS_MODE:=4711} +: ${FCAPS_NOCAPS_MODE:=4755} # @FUNCTION: fcaps # @USAGE: [-o ] [-g ] [-m ] [-M ] -- 2.47.0