diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2010-04-28 08:37:00 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2010-04-28 08:37:00 +0000 |
| commit | f276912e6fa1da1174ba900a7e5d6447d71fc8e7 (patch) | |
| tree | f6bc9905e05497f1cb98b09c2e6df135d3c6abbf /session.c | |
| parent | 5fe13e2e9be32fe8299a3a2da8e829bb2af78918 (diff) | |
Notes
Diffstat (limited to 'session.c')
| -rw-r--r-- | session.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/session.c b/session.c index 639405fec304..e032de6926f5 100644 --- a/session.c +++ b/session.c @@ -1551,6 +1551,10 @@ do_setusercontext(struct passwd *pw) } #endif /* HAVE_SETPCRED */ +#ifdef WITH_SELINUX + ssh_selinux_setup_exec_context(pw->pw_name); +#endif + if (options.chroot_directory != NULL && strcasecmp(options.chroot_directory, "none") != 0) { tmp = tilde_expand_filename(options.chroot_directory, @@ -1575,10 +1579,6 @@ do_setusercontext(struct passwd *pw) if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) fatal("Failed to set uids to %u.", (u_int) pw->pw_uid); - -#ifdef WITH_SELINUX - ssh_selinux_setup_exec_context(pw->pw_name); -#endif } static void |
