From: Stefan Schantl Date: Sat, 18 Mar 2023 21:15:52 +0000 (+0100) Subject: bash: Set correct permissions for /root and binaries X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6de61f743416634c44ec395f138660c40ef80d95;p=people%2Fstevee%2Fipfire-3.x.git bash: Set correct permissions for /root and binaries Signed-off-by: Stefan Schantl --- 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