]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
bash: Set correct permissions for /root and binaries
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 18 Mar 2023 21:15:52 +0000 (22:15 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 21 Mar 2023 18:25:40 +0000 (18:25 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
bash/bash.nm

index cbe78a42267ee90ca89960b6ecd74f29120a14a2..845eca8da6f8f96ec323495c17253ef8e71eae41 100644 (file)
@@ -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