diff options
author | Manoj Srivastava <srivasta@debian.org> | 2014-02-09 16:09:49 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-02-21 12:03:50 +0000 |
commit | b108c6bbe4b3691600a272b27fa24d9080018db7 (patch) | |
tree | 1a39cd8b5f41790f369ea635f889675367c09c5b /sshd.c | |
parent | 31d42cd8624f29508f772447e617ab043a6487d9 (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: 2020-02-21
Patch-Name: selinux-role.patch
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -595,7 +595,7 @@ privsep_postauth(struct ssh *ssh, Authctxt *authctxt) | |||
595 | reseed_prngs(); | 595 | reseed_prngs(); |
596 | 596 | ||
597 | /* Drop privileges */ | 597 | /* Drop privileges */ |
598 | do_setusercontext(authctxt->pw); | 598 | do_setusercontext(authctxt->pw, authctxt->role); |
599 | 599 | ||
600 | skip: | 600 | skip: |
601 | /* It is safe now to apply the key state */ | 601 | /* It is safe now to apply the key state */ |