168ea7cab1
Enable configuration of bzip behavior from Stephen Smalley. bzip-blocksize=0 to disable compression and decompression support. bzip-blocksize=1..9 to set the blocksize for compression. bzip-small=true to reduce memory usage for decompression.
36 lines
1.3 KiB
Diff
36 lines
1.3 KiB
Diff
diff --exclude-from=exclude -N -u -r nsalibsemanage/src/genhomedircon.c libsemanage-2.0.33/src/genhomedircon.c
|
|
--- nsalibsemanage/src/genhomedircon.c 2008-08-28 09:34:24.000000000 -0400
|
|
+++ libsemanage-2.0.33/src/genhomedircon.c 2009-07-15 10:32:20.000000000 -0400
|
|
@@ -304,6 +304,10 @@
|
|
continue;
|
|
if (!semanage_list_find(shells, pwbuf->pw_shell))
|
|
continue;
|
|
+ int len = strlen(pwbuf->pw_dir) -1;
|
|
+ for(; len > 0 && pwbuf->pw_dir[len]=='/'; len--) {
|
|
+ pwbuf->pw_dir[len]=0;
|
|
+ }
|
|
if (strcmp(pwbuf->pw_dir, "/") == 0)
|
|
continue;
|
|
if (semanage_str_count(pwbuf->pw_dir, '/') <= 1)
|
|
@@ -794,6 +798,11 @@
|
|
* /root */
|
|
continue;
|
|
}
|
|
+ if (strcmp(pwent->pw_dir, "/root") == 0) {
|
|
+ /* don't relabel /root*/
|
|
+ continue;
|
|
+ }
|
|
+
|
|
if (push_user_entry(&head, name, seuname,
|
|
prefix, pwent->pw_dir) != STATUS_SUCCESS) {
|
|
*errors = STATUS_ERR;
|
|
diff --exclude-from=exclude -N -u -r nsalibsemanage/src/semanage.conf libsemanage-2.0.33/src/semanage.conf
|
|
--- nsalibsemanage/src/semanage.conf 2008-08-28 09:34:24.000000000 -0400
|
|
+++ libsemanage-2.0.33/src/semanage.conf 2009-07-15 10:30:33.000000000 -0400
|
|
@@ -35,4 +35,4 @@
|
|
# given in <sepol/policydb.h>. Change this setting if a different
|
|
# version is necessary.
|
|
#policy-version = 19
|
|
-
|
|
+expand-check=0
|