Patch prctl() on ppc64le
This commit is contained in:
parent
cf8a0c1cad
commit
6fac47e036
29
0001-prctl.patch
Normal file
29
0001-prctl.patch
Normal file
@ -0,0 +1,29 @@
|
||||
From 1286ef310549ef3a7ce2ecf81523082f0453d194 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Pavel=20Filipensk=C3=BD?= <pfilipensky@samba.org>
|
||||
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
|
||||
|
@ -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ý <pfilipen@redhat.com> - 1.0.0-3
|
||||
- Patch prctl() on ppc64le
|
||||
|
||||
* Tue Oct 25 2022 Pavel Filipenský <pfilipen@redhat.com> - 1.0.0-2
|
||||
- Verify packages using gpgverify
|
||||
- Make description line length < 80
|
||||
|
Loading…
Reference in New Issue
Block a user