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-19 16:40:05 +0000
commit7afb9ad9307191397a3ccf3d7cc90dfe474b09e8 (patch)
tree967f2f81e8a07f299e132b82f949a3c5d202125a /sshd.c
parent429c595dbaff7f7c2b3a53fe4235211f6d788025 (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 */