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 f4a363543..44e0ac5fa 100644
--- a/session.c
+++ b/session.c
@@ -1522,6 +1522,10 @@ do_setusercontext(struct passwd *pw)
1522# endif /* USE_LIBIAF */ 1522# endif /* USE_LIBIAF */
1523#endif 1523#endif
1524 1524
1525#ifdef WITH_SELINUX
1526 ssh_selinux_setup_exec_context(pw->pw_name);
1527#endif
1528
1525 if (options.chroot_directory != NULL && 1529 if (options.chroot_directory != NULL &&
1526 strcasecmp(options.chroot_directory, "none") != 0) { 1530 strcasecmp(options.chroot_directory, "none") != 0) {
1527 tmp = tilde_expand_filename(options.chroot_directory, 1531 tmp = tilde_expand_filename(options.chroot_directory,
@@ -1550,10 +1554,6 @@ do_setusercontext(struct passwd *pw)
1550 1554
1551 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) 1555 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid)
1552 fatal("Failed to set uids to %u.", (u_int) pw->pw_uid); 1556 fatal("Failed to set uids to %u.", (u_int) pw->pw_uid);
1553
1554#ifdef WITH_SELINUX
1555 ssh_selinux_setup_exec_context(pw->pw_name);
1556#endif
1557} 1557}
1558 1558
1559static void 1559static void