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-03-20 00:24:48 +0000
commitae32d626ed3d15cfd7f432358b63c005961921df (patch)
tree1c46579409f5f692ec7db009bc716d980451095f /sshd.c
parent9dfcd1a0e691c1cad34b168e27b3ed31ab6986cd (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 d787fea7b..e343d902f 100644
--- a/sshd.c
+++ b/sshd.c
@@ -769,7 +769,7 @@ privsep_postauth(Authctxt *authctxt)
769 explicit_bzero(rnd, sizeof(rnd)); 769 explicit_bzero(rnd, sizeof(rnd));
770 770
771 /* Drop privileges */ 771 /* Drop privileges */
772 do_setusercontext(authctxt->pw); 772 do_setusercontext(authctxt->pw, authctxt->role);
773 773
774 skip: 774 skip:
775 /* It is safe now to apply the key state */ 775 /* It is safe now to apply the key state */