2019-05-31 01:09:32 -07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2005-04-16 15:20:36 -07: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-01 18:48:02 -05:00
|
|
|
#include "security.h"
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2023-12-21 17:18:49 -05:00
|
|
|
int security_get_bools(struct selinux_policy *policy, u32 *len, char ***names,
|
|
|
|
int **values);
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2024-12-16 17:40:01 +01:00
|
|
|
int security_set_bools(u32 len, const int *values);
|
2018-03-01 18:48:02 -05:00
|
|
|
|
2023-03-09 13:30:37 -05:00
|
|
|
int security_get_bool_value(u32 index);
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
#endif
|