summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorManoj Srivastava <srivasta@debian.org>2014-02-09 16:09:49 +0000
committerColin Watson <cjwatson@debian.org>2014-02-10 02:40:15 +0000
commitcc5ecb35ae6572d13ed523d143439a8559d1fee2 (patch)
tree2dd684d0a59dd7635ef51efca578a14dddcb85c2 /sshd.c
parentcd404114ded78fc51d5d9cbd458d55c9b2f67daa (diff)
Handle SELinux authorisation roles
Rejected upstream due to discomfort with magic usernames; a better approach will need an SSH protocol change. In the meantime, this came from Debian's SELinux maintainer, so we'll keep it until we have something better. Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=1641 Bug-Debian: http://bugs.debian.org/394795 Last-Update: 2013-09-14 Patch-Name: selinux-role.patch
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index fe65132e8..0a3010175 100644
--- a/sshd.c
+++ b/sshd.c
@@ -763,7 +763,7 @@ privsep_postauth(Authctxt *authctxt)
763 bzero(rnd, sizeof(rnd)); 763 bzero(rnd, sizeof(rnd));
764 764
765 /* Drop privileges */ 765 /* Drop privileges */
766 do_setusercontext(authctxt->pw); 766 do_setusercontext(authctxt->pw, authctxt->role);
767 767
768 skip: 768 skip:
769 /* It is safe now to apply the key state */ 769 /* It is safe now to apply the key state */