From 6de61f743416634c44ec395f138660c40ef80d95 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sat, 18 Mar 2023 22:15:52 +0100 Subject: [PATCH] bash: Set correct permissions for /root and binaries Signed-off-by: Stefan Schantl --- bash/bash.nm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bash/bash.nm b/bash/bash.nm index cbe78a422..845eca8da 100644 --- a/bash/bash.nm +++ b/bash/bash.nm @@ -5,7 +5,7 @@ name = bash version = 5.2.9 -release = 1 +release = 2 groups = System/Tools url = http://www.gnu.org/software/bash/ @@ -67,7 +67,7 @@ build install_cmds mkdir -pv %{BUILDROOT}%{sysconfdir}/{profile.d,skel} - mkdir -pv %{BUILDROOT}/root + install -v -m 700 -d %{BUILDROOT}/root # Bash startup files cp -vf %{DIR_SOURCE}/dot_bash_logout %{BUILDROOT}%{sysconfdir}/skel/.bash_logout @@ -92,6 +92,9 @@ build ) > "%{BUILDROOT}/%{bindir}/${f}" chmod +x "%{BUILDROOT}%{bindir}/${f}" done + + # Set correct permissions for binaries. + find %{BUILDROOT}%{bindir} -type f -executable -exec chmod 755 {} \; end end -- 2.47.3