diff options
author | djm <djm> | 2007-06-27 22:48:02 +0000 |
---|---|---|
committer | djm <djm> | 2007-06-27 22:48:02 +0000 |
commit | 09905fc0b31cda4da48c8fe52503594c9af9a793 (patch) | |
tree | b6a8b6e29a39beeb4ee3a0fb449711d4e8bb336d /openbsd-compat/port-linux.c | |
parent | 5c37c60b114e8775d11bba71ab5dec939ba198b5 (diff) | |
download | openssh-09905fc0b31cda4da48c8fe52503594c9af9a793.tar.gz |
- (djm) bz#1325: Fix SELinux in permissive mode where it would
incorrectly fatal() on errors. patch from cjwatson AT debian.org;
ok dtucker
Diffstat (limited to 'openbsd-compat/port-linux.c')
-rw-r--r-- | openbsd-compat/port-linux.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsd-compat/port-linux.c b/openbsd-compat/port-linux.c index 77f3a1c1..2f697e7d 100644 --- a/openbsd-compat/port-linux.c +++ b/openbsd-compat/port-linux.c @@ -1,4 +1,4 @@ -/* $Id: port-linux.c,v 1.3 2006/09/01 05:38:41 djm Exp $ */ +/* $Id: port-linux.c,v 1.4 2007/06/27 22:48:03 djm Exp $ */ /* * Copyright (c) 2005 Daniel Walsh <dwalsh@redhat.com> @@ -79,6 +79,7 @@ ssh_selinux_getctxbyname(char *pwname) case 0: error("%s: Failed to get default SELinux security " "context for %s", __func__, pwname); + break; default: fatal("%s: Failed to get default SELinux security " "context for %s (in enforcing mode)", @@ -115,6 +116,7 @@ ssh_selinux_setup_exec_context(char *pwname) case 0: error("%s: Failed to set SELinux execution " "context for %s", __func__, pwname); + break; default: fatal("%s: Failed to set SELinux execution context " "for %s (in enforcing mode)", __func__, pwname); |