summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/session.c b/session.c
index f2549e0cd..f296e9f10 100644
--- a/session.c
+++ b/session.c
@@ -1529,6 +1529,10 @@ do_setusercontext(struct passwd *pw)
1529# endif /* USE_LIBIAF */ 1529# endif /* USE_LIBIAF */
1530#endif 1530#endif
1531 1531
1532#ifdef WITH_SELINUX
1533 ssh_selinux_setup_exec_context(pw->pw_name);
1534#endif
1535
1532 if (options.chroot_directory != NULL && 1536 if (options.chroot_directory != NULL &&
1533 strcasecmp(options.chroot_directory, "none") != 0) { 1537 strcasecmp(options.chroot_directory, "none") != 0) {
1534 tmp = tilde_expand_filename(options.chroot_directory, 1538 tmp = tilde_expand_filename(options.chroot_directory,
@@ -1556,10 +1560,6 @@ do_setusercontext(struct passwd *pw)
1556#endif 1560#endif
1557 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) 1561 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid)
1558 fatal("Failed to set uids to %u.", (u_int) pw->pw_uid); 1562 fatal("Failed to set uids to %u.", (u_int) pw->pw_uid);
1559
1560#ifdef WITH_SELINUX
1561 ssh_selinux_setup_exec_context(pw->pw_name);
1562#endif
1563} 1563}
1564 1564
1565static void 1565static void