summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
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 8ac476c69..bdfcb26f9 100644
--- a/session.c
+++ b/session.c
@@ -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
1347static void 1351static void