diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -58,6 +58,8 @@ RCSID("$OpenBSD: session.c,v 1.181 2004/12/23 17:35:48 markus Exp $"); | |||
58 | #include "session.h" | 58 | #include "session.h" |
59 | #include "monitor_wrap.h" | 59 | #include "monitor_wrap.h" |
60 | 60 | ||
61 | #include "selinux.h" | ||
62 | |||
61 | #if defined(KRB5) && defined(USE_AFS) | 63 | #if defined(KRB5) && defined(USE_AFS) |
62 | #include <kafs.h> | 64 | #include <kafs.h> |
63 | #endif | 65 | #endif |
@@ -1342,6 +1344,8 @@ do_setusercontext(struct passwd *pw) | |||
1342 | #endif | 1344 | #endif |
1343 | if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) | 1345 | if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) |
1344 | fatal("Failed to set uids to %u.", (u_int) pw->pw_uid); | 1346 | fatal("Failed to set uids to %u.", (u_int) pw->pw_uid); |
1347 | |||
1348 | setup_selinux_exec_context(pw->pw_name); | ||
1345 | } | 1349 | } |
1346 | 1350 | ||
1347 | static void | 1351 | static void |