b2b4416387
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
29 lines
955 B
Diff
29 lines
955 B
Diff
From 48aa12af31c0b72872b411857d03a518a4200a3d Mon Sep 17 00:00:00 2001
|
|
From: Johannes Segitz <jsegitz@suse.de>
|
|
Date: Tue, 26 Sep 2023 15:14:14 +0200
|
|
Subject: [PATCH] useradd: Set proper SELinux labels for def_usrtemplate
|
|
|
|
Fixes: 74c17c716 ("Add support for skeleton files from /usr/etc/skel")
|
|
|
|
Signed-off-by: Johannes Segitz <jsegitz@suse.com>
|
|
---
|
|
src/useradd.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
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,
|
|
--
|
|
2.41.0
|
|
|