2019-05-31 16:09:32 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2005-04-17 06:20:36 +08:00
|
|
|
/*
|
|
|
|
* Interface to booleans in the security server. This is exported
|
|
|
|
* for the selinuxfs.
|
|
|
|
*
|
|
|
|
* Author: Karl MacMillan <kmacmillan@tresys.com>
|
|
|
|
*
|
|
|
|
* Copyright (C) 2003 - 2004 Tresys Technology, LLC
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SELINUX_CONDITIONAL_H_
|
|
|
|
#define _SELINUX_CONDITIONAL_H_
|
|
|
|
|
2018-03-02 07:48:02 +08:00
|
|
|
#include "security.h"
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2020-08-07 21:29:34 +08:00
|
|
|
int security_get_bools(struct selinux_policy *policy,
|
2020-02-03 19:27:20 +08:00
|
|
|
u32 *len, char ***names, int **values);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2020-02-03 19:27:20 +08:00
|
|
|
int security_set_bools(struct selinux_state *state, u32 len, int *values);
|
2018-03-02 07:48:02 +08:00
|
|
|
|
2020-02-03 19:27:20 +08:00
|
|
|
int security_get_bool_value(struct selinux_state *state, u32 index);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
#endif
|