import priv_wrapper-1.0.1-8.el10

i10ce changed/i10ce/priv_wrapper-1.0.1-8.el10
Arkady L. Shane 2 months ago
commit fbebbca150
Signed by: tigro
GPG Key ID: 1EC08A25C9DB2503

1
.gitignore vendored

@ -0,0 +1 @@
SOURCES/priv_wrapper-1.0.1.tar.gz

@ -0,0 +1 @@
4930e4409b8fa60c086cf875a6edd4c3da6767ef SOURCES/priv_wrapper-1.0.1.tar.gz

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEjf9T4Y8qvI2PPJIjfuD8TcwBTj0FAmN/etIACgkQfuD8TcwB
Tj3jSA//TAqda21/+ci925Q62+0HzIzDN+yNabCvOgrPeZqf6haFmPZUJgIvyvtI
mDr4MQjZxknUAgAkuqz9e+xwNUvi3TqG3LI5o0Z61PCQ64kdC4/COPRPXJh+qmRx
5RWqdjnyc5zsdA8eZQiCoDreUyn8gi76hTwQB7FTbW+RzBhT4BC6p/hSknWLYMgA
4evs7juu8rUAFD82UEQSQCDnt8qLpPr+duOcdemKktuEYUL5LVqWoYXwwEnNKxLh
i8h2UhbI1KHCvaKsIH1yFpmuNSZyPjAEbNqs+MkjNY/rOcvLJfj9OYIbqgUDpGoG
WwHT1WRbEzTNu2ExEbmeFGcUpMlwm2ZJKvaolGBt0ImiCQRYom+i7QZ6FKvAbcKm
uTjXZI2SQZCLNTVCsK/v4rlxw1puiFITQjOYZhkyZuOZB97VUP/QzOpR7OnYH9FM
l6MkGO8e5yrodfuyWqeL3RPOB0IupAuoJdqkqTVRw4F4SeL/cxS1namBP6SbwxD3
gG7+aF1398KmqGYFn15YA0MzDDeBrIMsq06REfz+/wwKj300s6a6JhFuKBReRn5C
ZUv388fQodItIeGeo4PoO6Sz1jpeF8vgPBqYcvxLGK6zuvZnnOeIZ7ZChjgDv/uu
Ib3ucisSdnDI/k95anEHmLbaGJWB8n91rJcAmY7XaPmUnakkDs8=
=LFpF
-----END PGP SIGNATURE-----

@ -0,0 +1,31 @@
From 295bcbe9de1fb37531678d482efb12583b77c6d0 Mon Sep 17 00:00:00 2001
From: Andreas Schneider <asn@samba.org>
Date: Fri, 17 Feb 2023 17:51:27 +0100
Subject: [PATCH] cmake: Fix cmocka >= 1.1.6 find_package() in CONFIG mode
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
---
tests/CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index d33cf15..46147cf 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,5 +1,9 @@
project(tests C)
+if (TARGET cmocka::cmocka)
+ set(CMOCKA_LIBRARY cmocka::cmocka)
+endif()
+
include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
--
2.39.2

Binary file not shown.

@ -0,0 +1,103 @@
Name: priv_wrapper
Version: 1.0.1
Release: 8%{?dist}
Summary: A library to disable resource limits and other privilege dropping
License: GPL-3.0-or-later
Url: http://cwrap.org/
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: priv_wrapper-fix-cmocka-1.1.6+-support.patch
BuildRequires: gcc
BuildRequires: cmake
BuildRequires: gnupg2
BuildRequires: libcmocka-devel >= 1.1.0
Recommends: cmake
Recommends: pkgconfig
%description
priv_wrapper aims to help running processes which are dropping privileges or
are restricting resources in test environments.
It can disable chroot, prctl, pledge and setrlmit system calls. A disabled call
always succeeds (i.e. returns 0) and does nothing.
The system call pledge exists only on OpenBSD.
To use it, set the following environment variables:
LD_PRELOAD=libpriv_wrapper.so
PRIV_WRAPPER_CHROOT_DISABLE=1
This package does not have a devel package, because this project is for
development/testing.
%prep
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -p1
%build
%cmake \
-DUNIT_TESTING=ON
%cmake_build
%install
%cmake_install
%ldconfig_scriptlets
%check
%ctest
%files
%doc AUTHORS README.md CHANGELOG.md
%license LICENSE
%{_libdir}/libpriv_wrapper.so*
%dir %{_libdir}/cmake
%dir %{_libdir}/cmake/priv_wrapper
%{_libdir}/cmake/priv_wrapper/priv_wrapper-config-version.cmake
%{_libdir}/cmake/priv_wrapper/priv_wrapper-config.cmake
%dir %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/priv_wrapper.pc
%{_mandir}/man1/priv_wrapper.1*
%changelog
* Sat Dec 14 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.0.1-8
- Rebuilt for MSVSphere 10
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.0.1-8
- Bump release for June 2024 mass rebuild
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Mon Mar 06 2023 Andreas Schneider <asn@redhat.com> - 1.0.1-4
- Update License to SPDX expression
* Mon Feb 27 2023 Andreas Schneider <asn@redhat.com> - 1.0.1-3
- Fix building with cmocka >= 1.1.6
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Nov 24 2022 Pavel Filipenský <pfilipenn@redhat.com> - 1.0.1-1
- Update to version 1.0.1
* 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
* Mon Oct 24 2022 Pavel Filipenský <pfilipen@redhat.com> - 1.0.0-1
- Initial package
Loading…
Cancel
Save