2014-07-15 22:27:34 +04:00
|
|
|
/*
|
2015-12-04 16:52:19 -06:00
|
|
|
* Copyright (c) 2014-2015 The OpenRC Authors.
|
|
|
|
* See the Authors file at the top-level directory of this distribution and
|
2021-12-20 20:07:00 -05:00
|
|
|
* https://github.com/OpenRC/openrc/blob/HEAD/AUTHORS
|
2014-07-15 22:27:34 +04:00
|
|
|
*
|
2015-12-04 16:52:19 -06:00
|
|
|
* This file is part of OpenRC. It is subject to the license terms in
|
|
|
|
* the LICENSE file found in the top-level directory of this
|
2021-12-20 20:07:00 -05:00
|
|
|
* distribution and at https://github.com/OpenRC/openrc/blob/HEAD/LICENSE
|
2015-12-04 16:52:19 -06:00
|
|
|
* This file may not be copied, modified, propagated, or distributed
|
|
|
|
* except according to the terms contained in the LICENSE file.
|
2014-07-15 22:27:34 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef RC_SELINUX_UTIL_H
|
|
|
|
#define RC_SELINUX_UTIL_H
|
|
|
|
|
2015-03-25 00:57:05 -05:00
|
|
|
#ifdef HAVE_SELINUX
|
|
|
|
|
2014-07-15 22:27:34 +04:00
|
|
|
int selinux_util_open(void);
|
|
|
|
int selinux_util_label(const char *path);
|
|
|
|
int selinux_util_close(void);
|
|
|
|
|
2014-10-30 10:22:02 +08:00
|
|
|
void selinux_setup(char **argv);
|
2014-07-17 00:46:25 +04:00
|
|
|
|
2015-03-25 00:57:05 -05:00
|
|
|
#else
|
|
|
|
|
|
|
|
/* always return false for selinux_util_open() */
|
|
|
|
#define selinux_util_open() (0)
|
2016-01-22 11:54:16 -06:00
|
|
|
#define selinux_util_label(x) do { } while (0)
|
|
|
|
#define selinux_util_close() do { } while (0)
|
2015-03-25 00:57:05 -05:00
|
|
|
|
2016-01-22 11:54:16 -06:00
|
|
|
#define selinux_setup(x) do { } while (0)
|
2015-03-25 00:57:05 -05:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2014-07-15 22:27:34 +04:00
|
|
|
#endif
|