2010-12-21 21:35:11 +00:00
|
|
|
diff --git a/libsemanage/src/genhomedircon.c b/libsemanage/src/genhomedircon.c
|
2011-08-18 11:16:10 +00:00
|
|
|
index 847d87e..2870fa8 100644
|
2010-12-21 21:35:11 +00:00
|
|
|
--- a/libsemanage/src/genhomedircon.c
|
|
|
|
+++ b/libsemanage/src/genhomedircon.c
|
2011-08-18 11:16:10 +00:00
|
|
|
@@ -314,6 +314,8 @@ static semanage_list_t *get_home_dirs(genhomedircon_settings_t * s)
|
2009-09-20 11:43:05 +00:00
|
|
|
}
|
|
|
|
if (strcmp(pwbuf->pw_dir, "/") == 0)
|
|
|
|
continue;
|
2011-08-18 11:16:10 +00:00
|
|
|
+ if (strcmp(pwbuf->pw_dir, "/root") == 0)
|
2009-09-20 11:43:05 +00:00
|
|
|
+ continue;
|
|
|
|
if (semanage_str_count(pwbuf->pw_dir, '/') <= 1)
|
|
|
|
continue;
|
|
|
|
if (!(path = strdup(pwbuf->pw_dir))) {
|
2011-08-18 11:16:10 +00:00
|
|
|
@@ -829,6 +831,8 @@ static genhomedircon_user_entry_t *get_users(genhomedircon_settings_t * s,
|
2009-09-20 11:43:05 +00:00
|
|
|
* /root */
|
|
|
|
continue;
|
|
|
|
}
|
2011-08-18 11:16:10 +00:00
|
|
|
+ if (strcmp(pwent->pw_dir, "/root") == 0)
|
2009-09-20 11:43:05 +00:00
|
|
|
+ continue;
|
|
|
|
if (push_user_entry(&head, name, seuname,
|
2011-08-18 11:16:10 +00:00
|
|
|
prefix, pwent->pw_dir, level) != STATUS_SUCCESS) {
|
2009-09-20 11:43:05 +00:00
|
|
|
*errors = STATUS_ERR;
|