Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
This commit is contained in:
Iker Pedrosa 2025-11-25 10:30:54 +01:00
commit 20b5296027
2 changed files with 32 additions and 1 deletions

View file

@ -1,7 +1,7 @@
Summary: Utilities for managing accounts and shadow password files
Name: shadow-utils
Version: 4.18.0
Release: 4%{?dist}
Release: 5%{?dist}
Epoch: 2
License: BSD-3-Clause AND GPL-2.0-or-later
URL: https://github.com/shadow-maint/shadow
@ -26,6 +26,8 @@ Patch0: shadow-4.15.0-manfix.patch
Patch1: shadow-4.18.0-account-tools-setuid.patch
# https://github.com/shadow-maint/shadow/commit/db0e0b9112332a45131912021317ab5ab4fd6e40
Patch2: shadow-4.18.0-selinux-chroot-prefix.patch
# Test patch
Patch3: test.patch
### Dependencies ###
Requires: audit-libs >= 1.6.5
@ -271,6 +273,9 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/libsubid.a
%{_libdir}/libsubid.so
%changelog
* Tue Nov 25 2025 Iker Pedrosa <ipedrosa@redhat.com> - 2:4.18.0-5
- Test CI
* Fri Oct 31 2025 Iker Pedrosa <ipedrosa@redhat.com> - 2:4.18.0-4
- Stop setting SELinux labels in chroot and prefix environments
Resolves: #2249524

26
test.patch Normal file
View file

@ -0,0 +1,26 @@
From 012684d388881727d6ce457d710a03d6df216409 Mon Sep 17 00:00:00 2001
From: Iker Pedrosa <ipedrosa@redhat.com>
Date: Tue, 25 Nov 2025 09:52:03 +0100
Subject: [PATCH] Test
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
---
src/useradd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/useradd.c b/src/useradd.c
index f7e46d6b..e2e95693 100644
--- a/src/useradd.c
+++ b/src/useradd.c
@@ -2440,7 +2440,7 @@ int main (int argc, char **argv)
#endif
unsigned long subuid_count = 0;
unsigned long subgid_count = 0;
- struct option_flags flags;
+ struct option_flags flags = {0};
bool process_selinux;
log_set_progname(Prog);
--
2.52.0