From f932419beaeea7cace7039ffb0d5f89606df1a7f3161ae09f8194e7cddc36c6b Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 30 Sep 2021 08:46:24 +0000 Subject: [PATCH] Accepting request 921983 from home:polslinux:branches:Base:System - update to 2.59: * Fixed a potential libcap memory leak by adding a destructor * Major improvement is that there is a path for Linux-PAM compliant applications to support setting Ambient vector Capabilities via pam_cap.so now * Added libcap cap_proc_root() API function * Added color support to captree * Fixed contrib/sucap/su to correctly handle the Inheritable flag * capsh enhancements * getcap -r / now generates readable output * The shared library objects: pam_cap.so, libcap.so and libpsx.so, are all now runnable as standalone binaries * The module pam_cap.so now contains support for a default= module argument * Enhanced capsh --suggest to also compare against the capability value names and not just their descriptions * Added capsh --current support * Added a contrib/sucap/su.c pure-capabilities PAM implementation of su * Fix for a corner case infinite loop handling long strings * Added libcap cap_iab_compare() and cap_iab_get_pid() APIs * Added a Go utility, captree, to display the process (and thread) graph along with the POSIX.1e and IAB capabilities of each PID{TID} tree. OBS-URL: https://build.opensuse.org/request/show/921983 OBS-URL: https://build.opensuse.org/package/show/Base:System/libcap?expand=0&rev=64 --- libcap-2.51.tar.xz | 3 --- libcap-2.59.tar.xz | 3 +++ libcap.changes | 24 ++++++++++++++++++++++++ libcap.spec | 7 +++---- 4 files changed, 30 insertions(+), 7 deletions(-) delete mode 100644 libcap-2.51.tar.xz create mode 100644 libcap-2.59.tar.xz diff --git a/libcap-2.51.tar.xz b/libcap-2.51.tar.xz deleted file mode 100644 index 43834cf..0000000 --- a/libcap-2.51.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6609f3ab7aebcc8f9277f53a577c657d9f3056d1352ea623da7fd7c0f00890f9 -size 145440 diff --git a/libcap-2.59.tar.xz b/libcap-2.59.tar.xz new file mode 100644 index 0000000..30ef7be --- /dev/null +++ b/libcap-2.59.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49f64ae40b113e53cbc161e22af7094e3bb4a0611fa33ef5a4257b011779f034 +size 168404 diff --git a/libcap.changes b/libcap.changes index cbc02a3..098fdd1 100644 --- a/libcap.changes +++ b/libcap.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Tue Sep 28 12:05:15 UTC 2021 - Paolo Stivanin + +- update to 2.59: + * Fixed a potential libcap memory leak by adding a destructor + * Major improvement is that there is a path for Linux-PAM compliant + applications to support setting Ambient vector Capabilities via pam_cap.so now + * Added libcap cap_proc_root() API function + * Added color support to captree + * Fixed contrib/sucap/su to correctly handle the Inheritable flag + * capsh enhancements + * getcap -r / now generates readable output + * The shared library objects: pam_cap.so, libcap.so and libpsx.so, are all now + runnable as standalone binaries + * The module pam_cap.so now contains support for a default= module argument + * Enhanced capsh --suggest to also compare against the capability value names + and not just their descriptions + * Added capsh --current support + * Added a contrib/sucap/su.c pure-capabilities PAM implementation of su + * Fix for a corner case infinite loop handling long strings + * Added libcap cap_iab_compare() and cap_iab_get_pid() APIs + * Added a Go utility, captree, to display the process (and thread) graph along with + the POSIX.1e and IAB capabilities of each PID{TID} tree. + ------------------------------------------------------------------- Sat Jul 17 06:33:52 UTC 2021 - Dirk Müller diff --git a/libcap.spec b/libcap.spec index f6e4fb3..b3d2ec3 100644 --- a/libcap.spec +++ b/libcap.spec @@ -17,7 +17,7 @@ Name: libcap -Version: 2.51 +Version: 2.59 Release: 0 Summary: Library for Capabilities (linux-privs) Support License: BSD-3-Clause AND GPL-2.0-only @@ -95,7 +95,7 @@ libcap. %global _lto_cflags %{nil} %global buildvariables RAISE_SETFCAP=no prefix=%{_prefix} lib=%{_lib} SHARED=yes LIBDIR=%{_libdir} SBINDIR=%{_sbindir} PKGCONFIGDIR=%{_libdir}/pkgconfig/ INCDIR=%{_includedir} MANDIR=%{_mandir} SHARED=yes COPTS="%{optflags}" -make %{buildvariables} +%make_build %{buildvariables} %install make install %{buildvariables} DESTDIR=%{buildroot} @@ -106,11 +106,10 @@ rm %{buildroot}%{_libdir}/libcap.a %fdupes -s %{buildroot} %check -make %{buildvariables} test +%make_build %{buildvariables} test %post -n libcap2 -p /sbin/ldconfig %postun -n libcap2 -p /sbin/ldconfig - %post -n libpsx2 -p /sbin/ldconfig %postun -n libpsx2 -p /sbin/ldconfig