From: Mike Gilbert <floppym@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: base-system@gentoo.org, Mike Gilbert <floppym@gentoo.org>
Subject: [gentoo-dev] [PATCH 2/2] fcaps.eclass: make binaries readable by default
Date: Sun, 10 Nov 2024 16:54:01 -0500 [thread overview]
Message-ID: <20241110215401.128418-2-floppym@gentoo.org> (raw)
In-Reply-To: <20241110215401.128418-1-floppym@gentoo.org>
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 <floppym@gentoo.org>
---
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 <owner>] [-g <group>] [-m <mode>] [-M <caps mode>] <capabilities> <file[s]>
--
2.47.0
next prev parent reply other threads:[~2024-11-10 21:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-10 21:54 [gentoo-dev] [PATCH 1/2] fcaps.eclass: introduce FCAPS_CAPS_MODE and FCAPS_NOCAPS_MODE Mike Gilbert
2024-11-10 21:54 ` Mike Gilbert [this message]
2024-11-10 22:38 ` [gentoo-dev] [PATCH 2/2] fcaps.eclass: make binaries readable by default Eli Schwartz
2024-11-11 0:14 ` Mike Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241110215401.128418-2-floppym@gentoo.org \
--to=floppym@gentoo.org \
--cc=base-system@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox