diff options
author | Darren Tucker <dtucker@zip.com.au> | 2008-03-27 07:27:20 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2008-03-27 07:27:20 +1100 |
commit | b8eb586412f338dcee69639ae375d5f72e26a094 (patch) | |
tree | 01aae213b6980e733522d5c1fa235519aaf82649 /openbsd-compat/port-linux.c | |
parent | a19390067474ab3a8ad806dbf551fd84164e78a4 (diff) |
- (dtucker) Cache selinux status earlier so we know if it's enabled after a
chroot. Allows ChrootDirectory to work with selinux support compiled in
but not enabled. Using it with selinux enabled will require some selinux
support inside the chroot. "looks sane" djm@
Diffstat (limited to 'openbsd-compat/port-linux.c')
-rw-r--r-- | openbsd-compat/port-linux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/port-linux.c b/openbsd-compat/port-linux.c index 2f697e7d9..ad262758e 100644 --- a/openbsd-compat/port-linux.c +++ b/openbsd-compat/port-linux.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: port-linux.c,v 1.4 2007/06/27 22:48:03 djm Exp $ */ | 1 | /* $Id: port-linux.c,v 1.5 2008/03/26 20:27:21 dtucker Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2005 Daniel Walsh <dwalsh@redhat.com> | 4 | * Copyright (c) 2005 Daniel Walsh <dwalsh@redhat.com> |
@@ -36,7 +36,7 @@ | |||
36 | #include <selinux/get_context_list.h> | 36 | #include <selinux/get_context_list.h> |
37 | 37 | ||
38 | /* Wrapper around is_selinux_enabled() to log its return value once only */ | 38 | /* Wrapper around is_selinux_enabled() to log its return value once only */ |
39 | static int | 39 | int |
40 | ssh_selinux_enabled(void) | 40 | ssh_selinux_enabled(void) |
41 | { | 41 | { |
42 | static int enabled = -1; | 42 | static int enabled = -1; |