xref: /freebsd/crypto/openssh/openbsd-compat/port-linux.h (revision b15c83408cb1e9b86c1895af0f097de05fc92ccf)
1b15c8340SDag-Erling Smørgrav /* $Id: port-linux.h,v 1.4 2009/12/08 02:39:48 dtucker Exp $ */
2761efaa7SDag-Erling Smørgrav 
3761efaa7SDag-Erling Smørgrav /*
4761efaa7SDag-Erling Smørgrav  * Copyright (c) 2006 Damien Miller <djm@openbsd.org>
5761efaa7SDag-Erling Smørgrav  *
6761efaa7SDag-Erling Smørgrav  * Permission to use, copy, modify, and distribute this software for any
7761efaa7SDag-Erling Smørgrav  * purpose with or without fee is hereby granted, provided that the above
8761efaa7SDag-Erling Smørgrav  * copyright notice and this permission notice appear in all copies.
9761efaa7SDag-Erling Smørgrav  *
10761efaa7SDag-Erling Smørgrav  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11761efaa7SDag-Erling Smørgrav  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12761efaa7SDag-Erling Smørgrav  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13761efaa7SDag-Erling Smørgrav  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14761efaa7SDag-Erling Smørgrav  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15761efaa7SDag-Erling Smørgrav  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16761efaa7SDag-Erling Smørgrav  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17761efaa7SDag-Erling Smørgrav  */
18761efaa7SDag-Erling Smørgrav 
19761efaa7SDag-Erling Smørgrav #ifndef _PORT_LINUX_H
20761efaa7SDag-Erling Smørgrav #define _PORT_LINUX_H
21761efaa7SDag-Erling Smørgrav 
22761efaa7SDag-Erling Smørgrav #ifdef WITH_SELINUX
23d4af9e69SDag-Erling Smørgrav int ssh_selinux_enabled(void);
24761efaa7SDag-Erling Smørgrav void ssh_selinux_setup_pty(char *, const char *);
25761efaa7SDag-Erling Smørgrav void ssh_selinux_setup_exec_context(char *);
26b15c8340SDag-Erling Smørgrav void ssh_selinux_change_context(const char *);
27b15c8340SDag-Erling Smørgrav #endif
28b15c8340SDag-Erling Smørgrav 
29b15c8340SDag-Erling Smørgrav #ifdef LINUX_OOM_ADJUST
30b15c8340SDag-Erling Smørgrav void oom_adjust_restore(void);
31b15c8340SDag-Erling Smørgrav void oom_adjust_setup(void);
32761efaa7SDag-Erling Smørgrav #endif
33761efaa7SDag-Erling Smørgrav 
34761efaa7SDag-Erling Smørgrav #endif /* ! _PORT_LINUX_H */
35