David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Interface to booleans in the security server. This is exported |
| 4 | * for the selinuxfs. |
| 5 | * |
| 6 | * Author: Karl MacMillan <kmacmillan@tresys.com> |
| 7 | * |
| 8 | * Copyright (C) 2003 - 2004 Tresys Technology, LLC |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #ifndef _SELINUX_CONDITIONAL_H_ |
| 12 | #define _SELINUX_CONDITIONAL_H_ |
| 13 | |
| 14 | #include "security.h" |
| 15 | |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 16 | int security_get_bools(struct selinux_policy *policy, |
| 17 | u32 *len, char ***names, int **values); |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 18 | |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 19 | int security_set_bools(struct selinux_state *state, u32 len, int *values); |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 20 | |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 21 | int security_get_bool_value(struct selinux_state *state, u32 index); |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 22 | |
| 23 | #endif |