import libcap-2.26-1.el8

This commit is contained in:
CentOS Sources 2019-11-05 15:21:49 -05:00 committed by Andrew Lukoshko
parent c7d7507670
commit db51386fba
4 changed files with 27 additions and 4 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/libcap-2.25.tar.gz
SOURCES/libcap-2.26.tar.gz

View File

@ -1 +1 @@
0d6e242d70e80c243a7abeb787e007835b3f0d3d SOURCES/libcap-2.25.tar.gz
e667d815755f3f6a5819eb383827dd358372dda1 SOURCES/libcap-2.26.tar.gz

View File

@ -0,0 +1,12 @@
diff -urN libcap-2.25/pam_cap/pam_cap.c libcap-2.25_patched/pam_cap/pam_cap.c
--- libcap-2.25/pam_cap/pam_cap.c 2013-12-16 05:46:28.000000000 +0100
+++ libcap-2.25_patched/pam_cap/pam_cap.c 2019-03-04 16:18:23.440525062 +0100
@@ -286,7 +286,7 @@
int retval;
struct pam_cap_s pcs;
- if (!(flags & PAM_ESTABLISH_CRED)) {
+ if (!(flags & (PAM_ESTABLISH_CRED | PAM_REINITIALIZE_CRED))) {
D(("we don't handle much in the way of credentials"));
return PAM_IGNORE;
}

View File

@ -1,6 +1,6 @@
Name: libcap
Version: 2.25
Release: 9%{?dist}
Version: 2.26
Release: 1%{?dist}
Summary: Library for getting and setting POSIX.1e capabilities
URL: https://sites.google.com/site/fullycapable/
License: GPLv2
@ -11,6 +11,7 @@ Source: https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/%{nam
# http://manned.org/getpcaps/299a4949/src:
Source1: getpcaps.8
Patch0: %{name}-2.25-buildflags.patch
Patch1: %{name}-PAM_REINITIALIZE_CRED.patch
BuildRequires: libattr-devel pam-devel perl-interpreter
@ -47,6 +48,7 @@ libcap.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
# libcap can not be build with _smp_mflags:
@ -88,6 +90,15 @@ chmod +x %{buildroot}/%{_libdir}/*.so.*
%{_libdir}/pkgconfig/libcap.pc
%changelog
* Fri Apr 12 2019 Karsten Hopp <karsten@redhat.com> - 2.26-1
- update to 2.26
* Thu Apr 11 2019 Karsten Hopp <karsten@redhat.com> - 2.25-11
- rebuild
* Thu Apr 11 2019 Karsten Hopp <karsten@redhat.com> - 2.25-10
- rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.25-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild