]> andersk Git - openssh.git/blobdiff - session.c
- (dtucker) Cache selinux status earlier so we know if it's enabled after a
[openssh.git] / session.c
index 92282f92a8b70f98cb4253d1d015a2e486572ea9..54621a4c046f06c0756e3847a5390d7a20911cb8 100644 (file)
--- a/session.c
+++ b/session.c
@@ -1345,6 +1345,11 @@ do_setusercontext(struct passwd *pw)
 {
        char *chroot_path, *tmp;
 
+#ifdef WITH_SELINUX
+       /* Cache selinux status for later use */
+       (void)ssh_selinux_enabled();
+#endif
+
 #ifndef HAVE_CYGWIN
        if (getuid() == 0 || geteuid() == 0)
 #endif /* HAVE_CYGWIN */
This page took 0.0321 seconds and 4 git commands to generate.