From 6fac47e0362345d2b60aa96052d46df0a530de0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Filipensk=C3=BD?= Date: Thu, 10 Nov 2022 14:03:07 +0100 Subject: [PATCH] Patch prctl() on ppc64le --- 0001-prctl.patch | 29 +++++++++++++++++++++++++++++ priv_wrapper.spec | 7 ++++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 0001-prctl.patch diff --git a/0001-prctl.patch b/0001-prctl.patch new file mode 100644 index 0000000..5455f21 --- /dev/null +++ b/0001-prctl.patch @@ -0,0 +1,29 @@ +From 1286ef310549ef3a7ce2ecf81523082f0453d194 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Pavel=20Filipensk=C3=BD?= +Date: Thu, 10 Nov 2022 13:41:04 +0100 +Subject: [PATCH] ../src/priv_wrapper.c + +--- + src/priv_wrapper.c | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) + +diff --git a/src/priv_wrapper.c b/src/priv_wrapper.c +index acff955..fc8b19f 100644 +--- a/src/priv_wrapper.c ++++ b/src/priv_wrapper.c +@@ -173,11 +173,7 @@ static void privwrap_log(enum privwrap_dbglvl_e dbglvl, + + typedef int (*__libc_chroot)(const char *path); + #ifdef HAVE_PRCTL +-typedef int (*__libc_prctl)(int option, +- unsigned long arg2, +- unsigned long arg3, +- unsigned long arg4, +- unsigned long arg5); ++typedef int (*__libc_prctl)(int option, ...); + #endif + #ifdef HAVE_PLEDGE + typedef int (*__libc_pledge)(const char *promises, +-- +2.37.3 + diff --git a/priv_wrapper.spec b/priv_wrapper.spec index a023f23..9860168 100644 --- a/priv_wrapper.spec +++ b/priv_wrapper.spec @@ -1,6 +1,6 @@ Name: priv_wrapper Version: 1.0.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A library to disable resource limits and other privilege dropping License: GPLv3+ @@ -10,6 +10,8 @@ Source0: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz Source1: https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz.asc Source2: priv_wrapper.keyring +Patch0: 0001-prctl.patch + BuildRequires: gcc BuildRequires: cmake BuildRequires: gnupg2 @@ -63,6 +65,9 @@ development/testing. %{_mandir}/man1/priv_wrapper.1* %changelog +* Thu Nov 10 2022 Pavel Filipenský - 1.0.0-3 +- Patch prctl() on ppc64le + * Tue Oct 25 2022 Pavel Filipenský - 1.0.0-2 - Verify packages using gpgverify - Make description line length < 80