conditional.h 593 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  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
  9. */
  10. #ifndef _SELINUX_CONDITIONAL_H_
  11. #define _SELINUX_CONDITIONAL_H_
  12. #include "security.h"
  13. int security_get_bools(struct selinux_policy *policy,
  14. u32 *len, char ***names, int **values);
  15. int security_set_bools(struct selinux_state *state, u32 len, int *values);
  16. int security_get_bool_value(struct selinux_state *state, u32 index);
  17. #endif