summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-04-22 21:26:08 +1000
committerDamien Miller <djm@mindrot.org>2006-04-22 21:26:08 +1000
commit73b42d2bb058da914828b53f2951954560a5b6eb (patch)
tree7271e92211fab0a06b0d36f162801b073220c5bf /session.c
parent2eaf37d899a55c253ad42d13534a824bce9c8ed2 (diff)
- (djm) [Makefile.in configure.ac session.c sshpty.c]
[contrib/redhat/sshd.init openbsd-compat/Makefile.in] [openbsd-compat/openbsd-compat.h openbsd-compat/port-linux.c] [openbsd-compat/port-linux.h] Add support for SELinux, setting the execution and TTY contexts. based on patch from Daniel Walsh, bz #880; ok dtucker@
Diffstat (limited to 'session.c')
-rw-r--r--session.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/session.c b/session.c
index 8b837d07d..bba3fa21f 100644
--- a/session.c
+++ b/session.c
@@ -1352,6 +1352,10 @@ do_setusercontext(struct passwd *pw)
1352#endif 1352#endif
1353 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) 1353 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid)
1354 fatal("Failed to set uids to %u.", (u_int) pw->pw_uid); 1354 fatal("Failed to set uids to %u.", (u_int) pw->pw_uid);
1355
1356#ifdef WITH_SELINUX
1357 ssh_selinux_setup_exec_context(pw->pw_name);
1358#endif
1355} 1359}
1356 1360
1357static void 1361static void