Thomas Gleixner | a10e763 | 2019-05-31 01:09:32 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Interface to booleans in the security server. This is exported |
| 4 | * for the selinuxfs. |
| 5 | * |
| 6 | * Author: Karl MacMillan <[email protected]> |
| 7 | * |
| 8 | * Copyright (C) 2003 - 2004 Tresys Technology, LLC |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #ifndef _SELINUX_CONDITIONAL_H_ |
| 12 | #define _SELINUX_CONDITIONAL_H_ |
| 13 | |
Stephen Smalley | aa8e712 | 2018-03-01 18:48:02 -0500 | [diff] [blame] | 14 | #include "security.h" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | |
Stephen Smalley | aa8e712 | 2018-03-01 18:48:02 -0500 | [diff] [blame] | 16 | int security_get_bools(struct selinux_state *state, |
| 17 | int *len, char ***names, int **values); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | |
Stephen Smalley | aa8e712 | 2018-03-01 18:48:02 -0500 | [diff] [blame] | 19 | int security_set_bools(struct selinux_state *state, |
| 20 | int len, int *values); |
| 21 | |
| 22 | int security_get_bool_value(struct selinux_state *state, |
| 23 | int index); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | |
| 25 | #endif |