#include <selinux/get_context_list.h>
/* Wrapper around is_selinux_enabled() to log its return value once only */
-int
+static int
ssh_selinux_enabled(void)
{
static int enabled = -1;
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)",
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);