2013-09-17 14:59:36 +02:00
|
|
|
--- src/useradd.c
|
2016-05-30 12:38:25 +02:00
|
|
|
+++ src/useradd.c
|
|
|
|
@@ -1896,6 +1896,9 @@ static void create_home (void)
|
2013-09-17 14:59:36 +02:00
|
|
|
if (access (user_home, F_OK) != 0) {
|
|
|
|
#ifdef WITH_SELINUX
|
|
|
|
if (set_selinux_file_context (user_home) != 0) {
|
|
|
|
+ fprintf (stderr,
|
|
|
|
+ _("%s: cannot set SELinux context for home directory %s\n"),
|
|
|
|
+ Prog, user_home);
|
|
|
|
fail_exit (E_HOMEDIR);
|
|
|
|
}
|
|
|
|
#endif
|
2016-05-30 12:38:25 +02:00
|
|
|
@@ -1925,6 +1928,9 @@ static void create_home (void)
|
2013-09-17 14:59:36 +02:00
|
|
|
#ifdef WITH_SELINUX
|
|
|
|
/* Reset SELinux to create files with default contexts */
|
|
|
|
if (reset_selinux_file_context () != 0) {
|
|
|
|
+ fprintf (stderr,
|
|
|
|
+ _("%s: cannot reset SELinux file creation context\n"),
|
|
|
|
+ Prog);
|
|
|
|
fail_exit (E_HOMEDIR);
|
|
|
|
}
|
|
|
|
#endif
|