blob: 0ab316f61da03b70a8a2c8ca80d9eb8946ec15a9 [file] [log] [blame]
Thomas Gleixnera10e7632019-05-31 01:09:32 -07001/* SPDX-License-Identifier: GPL-2.0-only */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
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 Torvalds1da177e2005-04-16 15:20:36 -07009 */
10
11#ifndef _SELINUX_CONDITIONAL_H_
12#define _SELINUX_CONDITIONAL_H_
13
Stephen Smalleyaa8e7122018-03-01 18:48:02 -050014#include "security.h"
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
Stephen Smalleyaa8e7122018-03-01 18:48:02 -050016int security_get_bools(struct selinux_state *state,
17 int *len, char ***names, int **values);
Linus Torvalds1da177e2005-04-16 15:20:36 -070018
Stephen Smalleyaa8e7122018-03-01 18:48:02 -050019int security_set_bools(struct selinux_state *state,
20 int len, int *values);
21
22int security_get_bool_value(struct selinux_state *state,
23 int index);
Linus Torvalds1da177e2005-04-16 15:20:36 -070024
25#endif