From 4d6656b1030c2090f8769ce9cce0a9e5dd135945 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sat, 24 Oct 2009 15:04:12 +1100 Subject: - (dtucker) [session.c openbsd-compat/port-linux.{c,h}] Bug #1637: if selinux is enabled set the security context to "sftpd_t" before running the internal sftp server Based on a patch from jchadima at redhat. --- openbsd-compat/port-linux.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openbsd-compat/port-linux.h') diff --git a/openbsd-compat/port-linux.h b/openbsd-compat/port-linux.h index 5cd39bf8..6ad4a49f 100644 --- a/openbsd-compat/port-linux.h +++ b/openbsd-compat/port-linux.h @@ -1,4 +1,4 @@ -/* $Id: port-linux.h,v 1.2 2008/03/26 20:27:21 dtucker Exp $ */ +/* $Id: port-linux.h,v 1.3 2009/10/24 04:04:13 dtucker Exp $ */ /* * Copyright (c) 2006 Damien Miller @@ -23,6 +23,7 @@ int ssh_selinux_enabled(void); void ssh_selinux_setup_pty(char *, const char *); void ssh_selinux_setup_exec_context(char *); +void ssh_selinux_change_context(const char *); #endif #endif /* ! _PORT_LINUX_H */ -- cgit v1.2.3