useradd: change SELinux labels for home files (#2022658)
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
This commit is contained in:
parent
4a03ec740c
commit
a2d5d3dbda
13
shadow-4.9-useradd-copy-tree-argument.patch
Normal file
13
shadow-4.9-useradd-copy-tree-argument.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/src/useradd.c b/src/useradd.c
|
||||||
|
index b463a170..f7c97958 100644
|
||||||
|
--- a/src/useradd.c
|
||||||
|
+++ b/src/useradd.c
|
||||||
|
@@ -2704,7 +2704,7 @@ int main (int argc, char **argv)
|
||||||
|
if (mflg) {
|
||||||
|
create_home ();
|
||||||
|
if (home_added) {
|
||||||
|
- copy_tree (def_template, prefix_user_home, false, false,
|
||||||
|
+ copy_tree (def_template, prefix_user_home, false, true,
|
||||||
|
(uid_t)-1, user_id, (gid_t)-1, user_gid);
|
||||||
|
} else {
|
||||||
|
fprintf (stderr,
|
@ -1,7 +1,7 @@
|
|||||||
Summary: Utilities for managing accounts and shadow password files
|
Summary: Utilities for managing accounts and shadow password files
|
||||||
Name: shadow-utils
|
Name: shadow-utils
|
||||||
Version: 4.9
|
Version: 4.9
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
License: BSD and GPLv2+
|
License: BSD and GPLv2+
|
||||||
URL: https://github.com/shadow-maint/shadow
|
URL: https://github.com/shadow-maint/shadow
|
||||||
@ -57,6 +57,8 @@ Patch17: shadow-4.9-libmisc-fix-default-value-in-SHA_get_salt_rounds.patch
|
|||||||
Patch18: shadow-4.9-semanage-close-the-selabel-handle.patch
|
Patch18: shadow-4.9-semanage-close-the-selabel-handle.patch
|
||||||
# https://github.com/shadow-maint/shadow/commit/4624e9fca1b02b64e25e8b2280a0186182ab73ba
|
# https://github.com/shadow-maint/shadow/commit/4624e9fca1b02b64e25e8b2280a0186182ab73ba
|
||||||
Patch19: shadow-4.9-revert-useradd-fix-memleak.patch
|
Patch19: shadow-4.9-revert-useradd-fix-memleak.patch
|
||||||
|
# https://github.com/shadow-maint/shadow/pull/439
|
||||||
|
Patch20: shadow-4.9-useradd-copy-tree-argument.patch
|
||||||
|
|
||||||
### Dependencies ###
|
### Dependencies ###
|
||||||
Requires: audit-libs >= 1.6.5
|
Requires: audit-libs >= 1.6.5
|
||||||
@ -136,6 +138,7 @@ Development files for shadow-utils-subid.
|
|||||||
%patch17 -p1 -b .libmisc-fix-default-value-in-SHA_get_salt_rounds
|
%patch17 -p1 -b .libmisc-fix-default-value-in-SHA_get_salt_rounds
|
||||||
%patch18 -p1 -b .semanage-close-the-selabel-handle
|
%patch18 -p1 -b .semanage-close-the-selabel-handle
|
||||||
%patch19 -p1 -b .revert-useradd-fix-memleak
|
%patch19 -p1 -b .revert-useradd-fix-memleak
|
||||||
|
%patch20 -p1 -b .useradd-copy-tree-argument
|
||||||
|
|
||||||
iconv -f ISO88591 -t utf-8 doc/HOWTO > doc/HOWTO.utf8
|
iconv -f ISO88591 -t utf-8 doc/HOWTO > doc/HOWTO.utf8
|
||||||
cp -f doc/HOWTO.utf8 doc/HOWTO
|
cp -f doc/HOWTO.utf8 doc/HOWTO
|
||||||
@ -306,6 +309,9 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/libsubid.la
|
|||||||
%{_libdir}/libsubid.so
|
%{_libdir}/libsubid.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 12 2021 Iker Pedrosa <ipedrosa@redhat.com> - 2:4.9-7
|
||||||
|
- useradd: change SELinux labels for home files (#2022658)
|
||||||
|
|
||||||
* Thu Nov 4 2021 Iker Pedrosa <ipedrosa@redhat.com> - 2:4.9-6
|
* Thu Nov 4 2021 Iker Pedrosa <ipedrosa@redhat.com> - 2:4.9-6
|
||||||
- useradd: revert fix memleak of grp (#2018697)
|
- useradd: revert fix memleak of grp (#2018697)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user