diff --git a/SOURCES/libcap-fix-typo-cap-from-text.patch b/SOURCES/libcap-fix-typo-cap-from-text.patch new file mode 100644 index 0000000..3d19830 --- /dev/null +++ b/SOURCES/libcap-fix-typo-cap-from-text.patch @@ -0,0 +1,47 @@ +From 60ff008d95584cc18701e98ed3cc4fa3d6cef9cb Mon Sep 17 00:00:00 2001 +From: "Andrew G. Morgan" +Date: Thu, 22 Sep 2022 06:54:37 -0700 +Subject: Fix typos in the cap_from_text.3 man page. + +This addresses this bug reported by Paulo Andrade (thanks!): + + https://bugzilla.kernel.org/show_bug.cgi?id=216514 + +Signed-off-by: Andrew G. Morgan +--- + doc/cap_from_text.3 | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/doc/cap_from_text.3 b/doc/cap_from_text.3 +index 9370e26..a0c9282 100644 +--- a/doc/cap_from_text.3 ++++ b/doc/cap_from_text.3 +@@ -10,7 +10,7 @@ state textual representation translation + #include + + cap_t cap_from_text(const char* buf_p ); +-char *cap_to_text(cap_t caps, ssize_t * length_p); ++char *cap_to_text(cap_t caps, ssize_t * len_p); + int cap_from_name(const char* name , cap_value_t* cap_p); + char *cap_to_name(cap_value_t cap); + .fi +@@ -46,7 +46,7 @@ is both set and cleared within a single clause. + .PP + .BR cap_to_text () + converts the capability state in working storage identified by +-.I cap_p ++.I caps + into a nul-terminated human-readable string. This function allocates + any memory necessary to contain the string, and returns a pointer to + the string. If the pointer +@@ -56,7 +56,7 @@ the function shall also return the full length of the string (not including + the nul terminator) in the location pointed to by + .IR len_p . + The capability state in working storage, identified by +-.IR cap_p , ++.IR caps , + is completely represented in the character string. + When the capability state in working storage is no longer required, + the caller should free any releasable memory by calling +-- +cgit 1.2.3-korg diff --git a/SPECS/libcap.spec b/SPECS/libcap.spec index 08681e2..5e6453b 100644 --- a/SPECS/libcap.spec +++ b/SPECS/libcap.spec @@ -1,6 +1,6 @@ Name: libcap Version: 2.48 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Library for getting and setting POSIX.1e capabilities URL: https://sites.google.com/site/fullycapable/ License: BSD or GPLv2 @@ -14,6 +14,7 @@ Patch4: libcap-disable-golang.patch Patch5: libcap-fix-ambient-caps.patch Patch6: libcap-cve-2023-2603.patch Patch7: libcap-cve-2023-2602.patch +Patch8: libcap-fix-typo-cap-from-text.patch BuildRequires: libattr-devel pam-devel perl-interpreter gcc BuildRequires: make @@ -90,6 +91,10 @@ chmod +x %{buildroot}/%{_libdir}/*.so.* %changelog +* Thu Jul 03 2025 Anderson Toshiyuki Sasaki - 2.48-10 +- Fix typos in the cap_from_text.3 man page + Resolves: RHEL-1838 + * Wed Jul 12 2023 Anderson Toshiyuki Sasaki - 2.48-9 - Fix integer overflow in _libcap_strdup() (CVE-2023-2603) Resolves: rhbz#2210638