libcap: add patch for missing capsh

This commit is contained in:
Andrew Benson 2021-05-28 20:37:58 -05:00
parent 516e72ed72
commit 6a33b31ac5
2 changed files with 40 additions and 1 deletions

View file

@ -0,0 +1,39 @@
From fc82332156dc04c24578aefcb7741d749d025032 Mon Sep 17 00:00:00 2001
From: "Andrew G. Morgan" <morgan@kernel.org>
Date: Fri, 28 May 2021 13:41:17 -0700
Subject: Make capsh an installed binary again
Bug report from Jan Palus:
https://bugzilla.kernel.org/show_bug.cgi?id=213261
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
---
progs/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/progs/Makefile b/progs/Makefile
index 289186e..2289cf7 100644
--- progs/Makefile
+++ progs/Makefile
@@ -32,14 +32,14 @@ $(BUILD): %: %.o $(DEPS)
install: all
mkdir -p -m 0755 $(FAKEROOT)$(SBINDIR)
- for p in $(PROGS) ; do \
+ for p in $(PROGS) capsh ; do \
install -m 0755 $$p $(FAKEROOT)$(SBINDIR) ; \
done
ifeq ($(RAISE_SETFCAP),yes)
$(FAKEROOT)$(SBINDIR)/setcap cap_setfcap=i $(FAKEROOT)$(SBINDIR)/setcap
endif
-test: $(PROGS)
+test: $(PROGS) capsh
capshdoc.h.cf: capshdoc.h ./mkcapshdoc.sh
./mkcapshdoc.sh > $@
--
cgit 1.2.3-1.el7

View file

@ -1,7 +1,7 @@
# Template file for 'libcap'
pkgname=libcap
version=2.50
revision=1
revision=2
bootstrap=yes
build_style=gnu-makefile
make_install_args="SBINDIR=/usr/bin exec_prefix=/usr