Blame SOURCES/0026-man-Document-invalid-selinux-context-for-homedirs.patch

836b22
From adebc962af61b86f78ff3dfb6e33db27149c399d Mon Sep 17 00:00:00 2001
836b22
From: Tomas Halman <thalman@redhat.com>
836b22
Date: Wed, 13 May 2020 09:45:56 +0200
836b22
Subject: [PATCH] man: Document invalid selinux context for homedirs
836b22
836b22
The default value of fallback_homedir expands into path, that is not
836b22
expected by selinux. Generally not only selinux might be affected by
836b22
this default value. This PR documents the issue and recommends
836b22
further steps.
836b22
836b22
Resolves:
836b22
https://github.com/SSSD/sssd/issues/5155
836b22
836b22
Reviewed-by: Alexey Tikhonov <atikhonov@redhat.com>
836b22
(cherry picked from commit d8d743870c459b5ff283c89d78b70d1684bd19a9)
836b22
---
836b22
 src/man/include/ad_modified_defaults.xml | 12 ++++++++++++
836b22
 1 file changed, 12 insertions(+)
836b22
836b22
diff --git a/src/man/include/ad_modified_defaults.xml b/src/man/include/ad_modified_defaults.xml
836b22
index 425b7e8ee..f84e9bcb4 100644
836b22
--- a/src/man/include/ad_modified_defaults.xml
836b22
+++ b/src/man/include/ad_modified_defaults.xml
836b22
@@ -92,6 +92,18 @@
836b22
                     this fallback behavior, you can explicitly
836b22
                     set "fallback_homedir = %o".
836b22
                 </para>
836b22
+                <para>
836b22
+                    Note that the system typically expects a home directory
836b22
+                    in /home/%u folder. If you decide to use a different
836b22
+                    directory structure, some other parts of your system may
836b22
+                    need adjustments.
836b22
+                </para>
836b22
+                <para>
836b22
+                    For example automated creation of home directories in
836b22
+                    combination with selinux requires selinux adjustment,
836b22
+                    otherwise the home directory will be created with wrong
836b22
+                    selinux context.
836b22
+                </para>
836b22
             </listitem>
836b22
         </itemizedlist>
836b22
     </refsect2>
836b22
-- 
836b22
2.21.1
836b22