port-linux.h revision 221420
1221420Sdes/* $Id: port-linux.h,v 1.4.10.1 2011/02/04 00:42:21 djm Exp $ */
2162852Sdes
3162852Sdes/*
4162852Sdes * Copyright (c) 2006 Damien Miller <djm@openbsd.org>
5162852Sdes *
6162852Sdes * Permission to use, copy, modify, and distribute this software for any
7162852Sdes * purpose with or without fee is hereby granted, provided that the above
8162852Sdes * copyright notice and this permission notice appear in all copies.
9162852Sdes *
10162852Sdes * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11162852Sdes * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12162852Sdes * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13162852Sdes * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14162852Sdes * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15162852Sdes * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16162852Sdes * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17162852Sdes */
18162852Sdes
19162852Sdes#ifndef _PORT_LINUX_H
20162852Sdes#define _PORT_LINUX_H
21162852Sdes
22162852Sdes#ifdef WITH_SELINUX
23181111Sdesint ssh_selinux_enabled(void);
24162852Sdesvoid ssh_selinux_setup_pty(char *, const char *);
25162852Sdesvoid ssh_selinux_setup_exec_context(char *);
26204917Sdesvoid ssh_selinux_change_context(const char *);
27221420Sdesvoid ssh_selinux_setfscreatecon(const char *);
28162852Sdes#endif
29162852Sdes
30204917Sdes#ifdef LINUX_OOM_ADJUST
31204917Sdesvoid oom_adjust_restore(void);
32204917Sdesvoid oom_adjust_setup(void);
33204917Sdes#endif
34204917Sdes
35162852Sdes#endif /* ! _PORT_LINUX_H */
36