Update apply-disable patch (#2045857)

Resolves: rhbz#2045857

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
This commit is contained in:
Anderson Toshiyuki Sasaki 2022-02-15 13:26:25 +01:00
parent 2df2e304c5
commit 1c0fd873df
2 changed files with 7 additions and 3 deletions

View File

@ -12,7 +12,7 @@ diff -urp libcap-ng-0.8.3.orig/src/cap-ng.c libcap-ng-0.8.3/src/cap-ng.c
+ int res;
+
+ /* get the name of the current executable */
+ if ((res = readlink("/proc/self/exe", tmp, PATH_MAX)) < -1)
+ if ((res = readlink("/proc/self/exe", tmp, PATH_MAX)) < 0)
+ strcpy(exename, "\"?\"");
+ else {
+ tmp[res] = '\0';
@ -27,7 +27,7 @@ diff -urp libcap-ng-0.8.3.orig/src/cap-ng.c libcap-ng-0.8.3/src/cap-ng.c
+ static const char *text[3] = {
+ "dropping bounding set",
+ "getting new bounding set",
+ "due to not having CAP_SETPCAP"
+ "dropping bounding set due to not having CAP_SETPCAP"
+ };
+ unsigned idx = msg - 2;
+ char exe[2048];

View File

@ -1,7 +1,7 @@
Summary: Alternate posix capabilities library
Name: libcap-ng
Version: 0.8.2
Release: 6%{?dist}
Release: 7%{?dist}
License: LGPLv2+
URL: https://people.redhat.com/sgrubb/libcap-ng/
Source0: https://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
@ -95,6 +95,10 @@ make check
%attr(0644,root,root) %{_mandir}/man8/*
%changelog
* Tue Feb 15 2022 <ansasaki@redhat.com> - 0.8.2-7
- Update apply-disable patch (#2045857)
Resolves: rhbz#2045857
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.8.2-6
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688