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