From 85964a3c4b77aa08ab783e13ac14fed52179cee8 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Mon, 20 Mar 2023 12:04:14 +0100 Subject: [PATCH] shadow-utils: Use capabilites and remove more unused binaries Signed-off-by: Stefan Schantl --- shadow-utils/shadow-utils.nm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/shadow-utils/shadow-utils.nm b/shadow-utils/shadow-utils.nm index 1b3be3674..fcc4fd5fd 100644 --- a/shadow-utils/shadow-utils.nm +++ b/shadow-utils/shadow-utils.nm @@ -5,7 +5,7 @@ name = shadow-utils version = 4.13 -release = 1 +release = 2 thisapp = shadow-%{version} groups = System/Base @@ -51,14 +51,12 @@ build --with-yescrypt \ --without-audit \ --without-selinux \ - --without-su - - # This should be enabled, but our environment currently does not support this - configure_options += --without-fcaps + --without-su \ + --with-fcaps install_cmds rm -vf \ - %{BUILDROOT}/{%{bindir},%{sbindir},%{mandir}/*}/{chfn,chsh,login,logoutd,newgrp,nologin,sg,vigr,vipw}* + %{BUILDROOT}/{%{bindir},%{sbindir},%{mandir}/*}/{chage,chfn,chsh,expiry,login,logoutd,newgrp,nologin,sg,vigr,vipw}* end end -- 2.47.3