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) | |
download | openssh-git-b8eb586412f338dcee69639ae375d5f72e26a094.tar.gz |
- (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 2f697e7d..ad262758 100644 --- a/openbsd-compat/port-linux.c +++ b/openbsd-compat/port-linux.c @@ -1,4 +1,4 @@ -/* $Id: port-linux.c,v 1.4 2007/06/27 22:48:03 djm Exp $ */ +/* $Id: port-linux.c,v 1.5 2008/03/26 20:27:21 dtucker Exp $ */ /* * Copyright (c) 2005 Daniel Walsh <dwalsh@redhat.com> @@ -36,7 +36,7 @@ #include <selinux/get_context_list.h> /* Wrapper around is_selinux_enabled() to log its return value once only */ -static int +int ssh_selinux_enabled(void) { static int enabled = -1; |