Accepting request 1114040 from home:jsegitz:branches:Base:System

- Add shadow-4.14.0-selinux-labels.patch:
  Set proper SELinux labels for new homedirs.
  See gh/shadow-maint/shadow#812.

OBS-URL: https://build.opensuse.org/request/show/1114040
OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=156
This commit is contained in:
Michael Vetter 2023-09-29 08:42:12 +00:00 committed by Git OBS Bridge
parent 89d6ca85a0
commit 8a856d91ac
3 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,21 @@
commit e635d8eff074d4e00b2952e1e741cb16ad930ae1
Author: Johannes Segitz <jsegitz@suse.de>
Date: Tue Sep 26 15:14:14 2023 +0200
useradd: Set proper SELinux labels also for content coming from def_usrtemplate
Signed-off-by: Johannes Segitz <jsegitz@suse.com>
diff --git a/src/useradd.c b/src/useradd.c
index 76a4d649..fe62a051 100644
--- a/src/useradd.c
+++ b/src/useradd.c
@@ -2788,7 +2788,7 @@ int main (int argc, char **argv)
if (home_added) {
copy_tree (def_template, prefix_user_home, false, true,
(uid_t)-1, user_id, (gid_t)-1, user_gid);
- copy_tree (def_usrtemplate, prefix_user_home, false, false,
+ copy_tree (def_usrtemplate, prefix_user_home, false, true,
(uid_t)-1, user_id, (gid_t)-1, user_gid);
} else {
fprintf (stderr,

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Sep 26 13:20:59 UTC 2023 - Johannes Segitz <jsegitz@suse.com>
- Add shadow-4.14.0-selinux-labels.patch:
Set proper SELinux labels for new homedirs.
See gh/shadow-maint/shadow#812.
-------------------------------------------------------------------
Thu Aug 17 10:14:14 UTC 2023 - Michael Vetter <mvetter@suse.com>

View File

@ -48,6 +48,8 @@ Patch3: shadow-login_defs-comments.patch
Patch4: shadow-login_defs-suse.patch
# PATCH-FIX-SUSE disable_new_audit_function.patch adam.majer@suse.de -- Disable newer libaudit functionality for older distributions.
Patch5: disable_new_audit_function.patch
# PATCH-FIX-SUSE shadow-4.14.0-selinux-labels.patch jsegitz@suse.com -- set proper SELinux labels for new homedirs, gh/shadow-maint/shadow#812
Patch6: shadow-4.14.0-selinux-labels.patch
BuildRequires: audit-devel > 2.3
BuildRequires: autoconf
BuildRequires: automake
@ -116,6 +118,7 @@ Development files for libsubid4.
%if 0%{?suse_version} < 1330
%patch5 -p1
%endif
%patch6 -p1
iconv -f ISO88591 -t utf-8 doc/HOWTO > doc/HOWTO.utf8
mv -v doc/HOWTO.utf8 doc/HOWTO