mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
- (djm) [openbsd-compat/port-linux.c] bz#1960: fix crash on SELinux
systems where sshd is run in te wrong context. Patch from Sven Vermeulen; ok dtucker@
This commit is contained in:
parent
93a2d41505
commit
7bf7b889b3
@ -1,3 +1,8 @@
|
|||||||
|
20120309
|
||||||
|
- (djm) [openbsd-compat/port-linux.c] bz#1960: fix crash on SELinux
|
||||||
|
systems where sshd is run in te wrong context. Patch from Sven
|
||||||
|
Vermeulen; ok dtucker@
|
||||||
|
|
||||||
20120224
|
20120224
|
||||||
- (dtucker) [audit-bsm.c configure.ac] bug #1968: enable workarounds for BSM
|
- (dtucker) [audit-bsm.c configure.ac] bug #1968: enable workarounds for BSM
|
||||||
audit breakage in Solaris 11. Patch from Magnus Johansson.
|
audit breakage in Solaris 11. Patch from Magnus Johansson.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: port-linux.c,v 1.16 2011/08/29 06:09:57 djm Exp $ */
|
/* $Id: port-linux.c,v 1.17 2012/03/08 23:25:18 djm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2005 Daniel Walsh <dwalsh@redhat.com>
|
* Copyright (c) 2005 Daniel Walsh <dwalsh@redhat.com>
|
||||||
@ -60,7 +60,7 @@ ssh_selinux_enabled(void)
|
|||||||
static security_context_t
|
static security_context_t
|
||||||
ssh_selinux_getctxbyname(char *pwname)
|
ssh_selinux_getctxbyname(char *pwname)
|
||||||
{
|
{
|
||||||
security_context_t sc;
|
security_context_t sc = NULL;
|
||||||
char *sename = NULL, *lvl = NULL;
|
char *sename = NULL, *lvl = NULL;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
@ -86,6 +86,7 @@ ssh_selinux_getctxbyname(char *pwname)
|
|||||||
case 0:
|
case 0:
|
||||||
error("%s: Failed to get default SELinux security "
|
error("%s: Failed to get default SELinux security "
|
||||||
"context for %s", __func__, pwname);
|
"context for %s", __func__, pwname);
|
||||||
|
sc = NULL;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
fatal("%s: Failed to get default SELinux security "
|
fatal("%s: Failed to get default SELinux security "
|
||||||
@ -101,7 +102,7 @@ ssh_selinux_getctxbyname(char *pwname)
|
|||||||
xfree(lvl);
|
xfree(lvl);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return (sc);
|
return sc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the execution context to the default for the specified user */
|
/* Set the execution context to the default for the specified user */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user