public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libcap-ng] rawhide: New upstream bugfix release
@ 2026-12-01 17:19 Steve Grubb
  0 siblings, 0 replies; 5+ messages in thread
From: Steve Grubb @ 2026-12-01 17:19 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libcap-ng
Branch : rawhide
Commit : 2e8a8f9c394d6befbceaceb0d0dfc2e32bc9660c
Author : Steve Grubb <sgrubb@redhat.com>
Date   : 2026-12-01T12:19:06-05:00
Stats  : +72/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/libcap-ng/c/2e8a8f9c394d6befbceaceb0d0dfc2e32bc9660c?branch=rawhide

Log:
New upstream bugfix release

---
diff --git a/libcap-ng.spec b/libcap-ng.spec
index da71eef..29fe193 100644
--- a/libcap-ng.spec
+++ b/libcap-ng.spec
@@ -6,6 +6,8 @@ Release: 1%{?dist}
 License: LGPL-2.0-or-later
 URL: https://github.com/stevegrubb/libcap-ng
 Source0: %{name}-%{version}.tar.gz
+# Fix 32 bit builds
+Patch1: vsock.patch
 BuildRequires: gcc make
 BuildRequires: autoconf automake libtool
 BuildRequires: kernel-headers >= 2.6.11 
@@ -60,6 +62,7 @@ to determine the necessary capabilities for a program.
 %prep
 %setup -q
 touch -d @${SOURCE_DATE_EPOCH:?} NEWS
+%patch -P1 -p1 
 
 %build
 # Locate suitable vmlinux.h. In normal builds under mock,

diff --git a/vsock.patch b/vsock.patch
new file mode 100644
index 0000000..4ecba44
--- /dev/null
+++ b/vsock.patch
@@ -0,0 +1,69 @@
+commit 3446542391d28e687ece9246a8fdae2b87227c8e
+Author: Steve Grubb <ausearch.1@gmail.com>
+Date:   Tue Dec 1 12:12:39 2026 -0500
+
+    netcap: reject VSOCK numeric overflow on 32-bit systems
+    
+    The VSOCK numeric parser checked strtoul's result against UINT_MAX but
+    ignored ERANGE. On i686, unsigned long is also 32 bits, so an overflowing
+    token saturates at UINT_MAX and passes the range check. This accepted
+    invalid CIDs and ports and caused netcap_advanced_test to fail.
+    
+    Clear errno before conversion and reject ERANGE as well as values larger
+    than UINT_MAX. This preserves valid maximum values and prevents an earlier
+    conversion error from rejecting a subsequent valid token.
+    
+    Extend the VSOCK parser tests to cover zero, decimal and hexadecimal
+    UINT_MAX, overflow beyond both 32-bit and 64-bit limits, and parsing a valid
+    maximum with ERANGE left over from a previous conversion. Reproduced the
+    original failure on i686 and passed make -j32 check on i686 and x86_64 with
+    --without-python (15 tests each).
+
+diff --git a/utils/netcap-advanced.c b/utils/netcap-advanced.c
+index 9cf3eab..6694d99 100644
+--- a/utils/netcap-advanced.c
++++ b/utils/netcap-advanced.c
+@@ -2045,14 +2045,17 @@ static int parse_u32_hex_or_dec(const char *s, unsigned int *out)
+ 		base = 16;
+ 	if (base == 10 && strlen(s) > 3 && s[0] == '0')
+ 		base = 16;
++	errno = 0;
+ 	v = strtoul(s, &end, base);
+ 	if (end == s || *end)
+ 		return -1;
+ 	/*
+ 	 * The caller stores CIDs, ports, and similar procfs fields in u32s.
+ 	 * Reject oversized text values so they cannot wrap into a false match.
++	 * On 32-bit systems strtoul saturates at UINT_MAX on overflow, so
++	 * the value alone cannot distinguish overflow from a valid maximum.
+ 	 */
+-	if (v > UINT_MAX)
++	if (errno == ERANGE || v > UINT_MAX)
+ 		return -1;
+ 	*out = (unsigned int)v;
+ 	return 0;
+diff --git a/utils/test/netcap_advanced_test.c b/utils/test/netcap_advanced_test.c
+index 8a51dff..e5a2fc2 100644
+--- a/utils/test/netcap_advanced_test.c
++++ b/utils/test/netcap_advanced_test.c
+@@ -690,9 +690,19 @@ static void test_vsock_table(void)
+ 	if (parse_u32_hex_or_dec("1024", &v) || v != 1024 ||
+ 	    parse_u32_hex_or_dec("0x1F", &v) || v != 31 ||
+ 	    parse_u32_hex_or_dec("0A", &v) || v != 10 ||
++	    parse_u32_hex_or_dec("0", &v) || v != 0 ||
++	    parse_u32_hex_or_dec("4294967295", &v) || v != UINT_MAX ||
++	    parse_u32_hex_or_dec("0xFFFFFFFF", &v) || v != UINT_MAX ||
+ 	    !parse_u32_hex_or_dec("", &v) || !parse_u32_hex_or_dec("12z", &v) ||
+-	    !parse_u32_hex_or_dec("0x100000000", &v))
++	    !parse_u32_hex_or_dec("0x100000000", &v) ||
++	    !parse_u32_hex_or_dec("4294967296", &v) ||
++	    !parse_u32_hex_or_dec("18446744073709551616", &v) ||
++	    !parse_u32_hex_or_dec("0x10000000000000000", &v))
+ 		fail("VSOCK numeric tokens were misparsed");
++	/* An earlier overflow must not cause a valid maximum value to fail. */
++	errno = ERANGE;
++	if (parse_u32_hex_or_dec("4294967295", &v) || v != UINT_MAX)
++		fail("VSOCK numeric parsing did not recover after overflow");
+ 
+ 	write_fixture(path, "Num Local Remote Type St Inode\n"
+ 		      "0 3:1024 0:0 1 0A 6001\n"

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [rpms/libcap-ng] rawhide: New upstream bugfix release
@ 2026-12-01 16:57 Steve Grubb
  0 siblings, 0 replies; 5+ messages in thread
From: Steve Grubb @ 2026-12-01 16:57 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libcap-ng
Branch : rawhide
Commit : c7b3b6426e29f07f825446f58e4469c99634dc09
Author : Steve Grubb <sgrubb@redhat.com>
Date   : 2026-12-01T11:57:42-05:00
Stats  : +2/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/libcap-ng/c/c7b3b6426e29f07f825446f58e4469c99634dc09?branch=rawhide

Log:
New upstream bugfix release

---
diff --git a/.gitignore b/.gitignore
index 43a49db..325804f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -34,3 +34,4 @@ libcap-ng-0.6.4.tar.gz
 /libcap-ng-0.9.4.tar.gz
 /libcap-ng-0.9.5.tar.gz
 /libcap-ng-0.9.6.tar.gz
+/libcap-ng-1.0.tar.gz

diff --git a/sources b/sources
index 10bbe71..9286954 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libcap-ng-0.9.6.tar.gz) = d5d8ce10d0eba731010a8c520e9052f470e7da144e79341ba5492aab30f83cf358269c06d43274311e44cd26754b428a0c3625b461bac0985ae64af207ef042f
+SHA512 (libcap-ng-1.0.tar.gz) = 01c2a5dd1058af9d44663b0058d9f118f48b16a64edaad2327682a4140ef3927cf6e84ad53108ae5ce39052583de8880346264c8a3e09f8c15f872d4bbedc474

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [rpms/libcap-ng] rawhide: New upstream bugfix release
@ 2026-12-01 16:50 Steve Grubb
  0 siblings, 0 replies; 5+ messages in thread
From: Steve Grubb @ 2026-12-01 16:50 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libcap-ng
Branch : rawhide
Commit : 7d56f884a859ca2fd77e304cd8cac72f77d5dd6e
Author : Steve Grubb <sgrubb@redhat.com>
Date   : 2026-12-01T11:50:21-05:00
Stats  : +4/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/libcap-ng/c/7d56f884a859ca2fd77e304cd8cac72f77d5dd6e?branch=rawhide

Log:
New upstream bugfix release

---
diff --git a/libcap-ng.spec b/libcap-ng.spec
index e4ee55b..da71eef 100644
--- a/libcap-ng.spec
+++ b/libcap-ng.spec
@@ -1,7 +1,7 @@
 %global bpf_supported_arches aarch64 x86_64 ppc64le riscv64 s390x
 Summary: Alternate posix capabilities library
 Name: libcap-ng
-Version: 0.9.6
+Version: 1.0
 Release: 1%{?dist}
 License: LGPL-2.0-or-later
 URL: https://github.com/stevegrubb/libcap-ng
@@ -130,6 +130,9 @@ make check
 %endif
 
 %changelog
+* Tue Dec 01 2026 Steve Grubb <sgrubb@redhat.com> 1.0-1
+- New upstream bugfix release
+
 * Wed Sep 09 2026 Steve Grubb <sgrubb@redhat.com> 0.9.6-1
 - New upstream bugfix release
 

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [rpms/libcap-ng] rawhide: New upstream bugfix release
@ 2026-09-09 13:06 Steve Grubb
  0 siblings, 0 replies; 5+ messages in thread
From: Steve Grubb @ 2026-09-09 13:06 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libcap-ng
Branch : rawhide
Commit : 26345a03916d88e186c80c5d1ef3dfc5f8ebbc85
Author : Steve Grubb <sgrubb@redhat.com>
Date   : 2026-09-09T09:05:48-04:00
Stats  : +1/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/libcap-ng/c/26345a03916d88e186c80c5d1ef3dfc5f8ebbc85?branch=rawhide

Log:
New upstream bugfix release

---
diff --git a/libcap-ng.spec b/libcap-ng.spec
index 973ccaa..e4ee55b 100644
--- a/libcap-ng.spec
+++ b/libcap-ng.spec
@@ -1,7 +1,7 @@
 %global bpf_supported_arches aarch64 x86_64 ppc64le riscv64 s390x
 Summary: Alternate posix capabilities library
 Name: libcap-ng
-Version: 0.9.5
+Version: 0.9.6
 Release: 1%{?dist}
 License: LGPL-2.0-or-later
 URL: https://github.com/stevegrubb/libcap-ng

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [rpms/libcap-ng] rawhide: New upstream bugfix release
@ 2026-09-09 13:03 Steve Grubb
  0 siblings, 0 replies; 5+ messages in thread
From: Steve Grubb @ 2026-09-09 13:03 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/libcap-ng
Branch : rawhide
Commit : 52a70acc57e48b7bc722d04c40957d411e81d87f
Author : Steve Grubb <sgrubb@redhat.com>
Date   : 2026-09-09T09:02:48-04:00
Stats  : +6/-2 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/libcap-ng/c/52a70acc57e48b7bc722d04c40957d411e81d87f?branch=rawhide

Log:
New upstream bugfix release

---
diff --git a/.gitignore b/.gitignore
index 974b858..43a49db 100644
--- a/.gitignore
+++ b/.gitignore
@@ -33,3 +33,4 @@ libcap-ng-0.6.4.tar.gz
 /libcap-ng-0.9.3.tar.gz
 /libcap-ng-0.9.4.tar.gz
 /libcap-ng-0.9.5.tar.gz
+/libcap-ng-0.9.6.tar.gz

diff --git a/libcap-ng.spec b/libcap-ng.spec
index 06791e5..973ccaa 100644
--- a/libcap-ng.spec
+++ b/libcap-ng.spec
@@ -12,7 +12,7 @@ BuildRequires: kernel-headers >= 2.6.11
 BuildRequires: libattr-devel
 %ifarch %{bpf_supported_arches}
 # These next ones are needed by cap-audit
-BuildRequires: clang
+BuildRequires: clang, llvm
 BuildRequires: bpftool libbpf-devel
 BuildRequires: audit-libs-devel
 BuildRequires: kernel-devel
@@ -130,6 +130,9 @@ make check
 %endif
 
 %changelog
+* Wed Sep 09 2026 Steve Grubb <sgrubb@redhat.com> 0.9.6-1
+- New upstream bugfix release
+
 * Thu Aug 20 2026 Steve Grubb <sgrubb@redhat.com> 0.9.5-1
 - New upstream feature release
 

diff --git a/sources b/sources
index 321ebc5..10bbe71 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libcap-ng-0.9.5.tar.gz) = eca44c680ea6104c59591ee19ae9136ed1f4d0437877a1c16f5fb5d546466ff99d52fe45daa081bc6dde15abbb3902528b7bf6fade4845d0c13756d426e21db7
+SHA512 (libcap-ng-0.9.6.tar.gz) = d5d8ce10d0eba731010a8c520e9052f470e7da144e79341ba5492aab30f83cf358269c06d43274311e44cd26754b428a0c3625b461bac0985ae64af207ef042f

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-01 17:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 17:19 [rpms/libcap-ng] rawhide: New upstream bugfix release Steve Grubb
  -- strict thread matches above, loose matches on Subject: below --
2026-12-01 16:57 Steve Grubb
2026-12-01 16:50 Steve Grubb
2026-09-09 13:06 Steve Grubb
2026-09-09 13:03 Steve Grubb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox