From: "Marta Rybczynska" <rybczynska@gmail.com>
To: yocto@lists.yoctoproject.org, akuster808@gmail.com
Cc: Marta Rybczynska <rybczynska@gmail.com>,
Marta Rybczynska <marta.rybczynska@huawei.com>
Subject: [meta-hardening][PATCH] meta-hardening/binutils: harden installation permissions
Date: Wed, 25 Aug 2021 08:15:34 +0200 [thread overview]
Message-ID: <20210825061534.9658-1-rybczynska@gmail.com> (raw)
Compilers and related utils are better restricted on production platforms.
Change permissions of all installed binutils tools to remove access from
users outside of the root group.
This also demonstrates how to restrict file permissions in a hardened
distribution.
Signed-off-by: Marta Rybczynska <marta.rybczynska@huawei.com>
---
meta-hardening/recipes-devtools/binutils/binutils_%.bbappend | 3 +++
1 file changed, 3 insertions(+)
create mode 100644 meta-hardening/recipes-devtools/binutils/binutils_%.bbappend
diff --git a/meta-hardening/recipes-devtools/binutils/binutils_%.bbappend b/meta-hardening/recipes-devtools/binutils/binutils_%.bbappend
new file mode 100644
index 0000000..3eb3ad0
--- /dev/null
+++ b/meta-hardening/recipes-devtools/binutils/binutils_%.bbappend
@@ -0,0 +1,3 @@
+do_install_append_class-target () {
+ chmod o-rx ${D}${prefix}/${TARGET_SYS}/bin/*
+}
--
2.30.2
next reply other threads:[~2021-08-25 6:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-25 6:15 Marta Rybczynska [this message]
[not found] <20210825060532.8379-1-rybczynska@gmail.com>
[not found] ` <4aa7aca3-2de1-8cc4-123b-f0f4e44ccfb2@gmail.com>
2021-08-30 16:26 ` [meta-hardening][PATCH] meta-hardening/binutils: harden installation permissions Marta Rybczynska
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=20210825061534.9658-1-rybczynska@gmail.com \
--to=rybczynska@gmail.com \
--cc=akuster808@gmail.com \
--cc=marta.rybczynska@huawei.com \
--cc=yocto@lists.yoctoproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.