0b6b0c93f2
Add enable/disable patch support from Dan Walsh. Add usepasswd flag to semanage.conf to disable genhomedircon using passwd from Dan Walsh. regenerate swig wrappers
25 lines
764 B
Diff
25 lines
764 B
Diff
diff --exclude-from=exclude -N -u -r nsalibsemanage/src/genhomedircon.c libsemanage-2.0.44/src/genhomedircon.c
|
|
--- nsalibsemanage/src/genhomedircon.c 2009-09-17 08:59:43.000000000 -0400
|
|
+++ libsemanage-2.0.44/src/genhomedircon.c 2010-02-24 14:57:23.000000000 -0500
|
|
@@ -310,6 +310,10 @@
|
|
}
|
|
if (strcmp(pwbuf->pw_dir, "/") == 0)
|
|
continue;
|
|
+ if (strcmp(pwbuf->pw_dir, "/root") == 0) {
|
|
+ continue;
|
|
+ }
|
|
+
|
|
if (semanage_str_count(pwbuf->pw_dir, '/') <= 1)
|
|
continue;
|
|
if (!(path = strdup(pwbuf->pw_dir))) {
|
|
@@ -803,6 +807,9 @@
|
|
* /root */
|
|
continue;
|
|
}
|
|
+ if (strcmp(pwent->pw_dir, "/root") == 0) {
|
|
+ continue;
|
|
+ }
|
|
if (push_user_entry(&head, name, seuname,
|
|
prefix, pwent->pw_dir) != STATUS_SUCCESS) {
|
|
*errors = STATUS_ERR;
|