1security_get_boolean_names(3S)ELinux API Documentatisoencurity_get_boolean_names(3)
2
3
4

NAME

6       security_load_booleans, security_set_boolean, security_commit_booleans,
7       security_get_boolean_names,     security_get_boolean_active,      secu‐
8       rity_get_boolean_pending  -  routines  for manipulating SELinux boolean
9       values
10

SYNOPSIS

12       #include <selinux/selinux.h>
13
14       int security_load_booleans(char *path);
15
16       int security_get_boolean_names(char ***names, int *len);
17
18       int security_get_boolean_pending(const char *name);
19
20       int security_get_boolean_active(const char *name);
21
22       int security_set_boolean(const char *name, int value);
23
24       int security_set_boolean_list(size_t boolcnt, SELboolean *boollist, int
25       permanent);
26
27       int security_commit_booleans(void);
28

DESCRIPTION

30       The  SELinux  policy  can include conditional rules that are enabled or
31       disabled based on the current values  of  a  set  of  policy  booleans.
32       These policy booleans allow runtime modification of the security policy
33       without having to load a new policy.
34
35       The SELinux API allows for a transaction based update. So you  can  set
36       several boolean values and then commit them all at once.
37
38       security_load_booleans()  loads  policy  boolean  settings. Path may be
39       NULL, in which case the booleans are  loaded  from  the  active  policy
40       boolean configuration file.
41
42       security_get_boolean_names()  provides  a  list  of boolean names, cur‐
43       rently supported by the loaded policy.
44
45       security_get_boolean_pending() returns the pending value for boolean or
46       -1 on failure.
47
48       security_get_boolean_active()  returns  the active value for boolean or
49       -1 on failure.
50
51       security_set_boolean() sets the pending value for boolean
52
53       security_set_boolean_list() saves a list of booleans in a single trans‐
54       action.
55
56       security_commit_booleans() commits all pending values for the booleans.
57

RETURN VALUE

59       Where  not  otherwise  stated,  functions described in this manual page
60       return zero on success or -1 on error.
61

AUTHOR

63       This manual page was written by Dan Walsh <dwalsh@redhat.com>.
64

SEE ALSO

66       selinux(8), getsebool(8), booleans(8), togglesebool(8)
67
68
69
70dwalsh@redhat.com              15 November 2004  security_get_boolean_names(3)
Impressum