From 39c24e2b7f896989723efe81c7ea42563aa36a80 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Mon, 20 Mar 2023 11:31:49 +0100 Subject: [PATCH] sudo: Fix library permissions Signed-off-by: Stefan Schantl --- sudo/sudo.nm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sudo/sudo.nm b/sudo/sudo.nm index 6c46eb1ac..55e4d42e1 100644 --- a/sudo/sudo.nm +++ b/sudo/sudo.nm @@ -5,7 +5,7 @@ name = sudo version = 1.9.12p1 -release = 2 +release = 3 groups = Applications/System url = https://www.sudo.ws/ @@ -60,11 +60,16 @@ build end install_cmds + # Create sudoers config file. mkdir -pv %{BUILDROOT}%{sysconfdir} cp -vf %{DIR_SOURCE}/sudoers %{BUILDROOT}%{sysconfdir}/sudoers - # Do not ship /run + # Do not ship /run. rm -rvf %{BUILDROOT}/run + + # Fix library permissions. + find %{BUILDROOT}%{libdir}/%{name} -type f -iname "*.so" -exec chmod 755 {} \; + end end -- 2.47.3