1semanage_user(3)         Libsemanage API documentation        semanage_user(3)
2
3
4

NAME

6       semanage_user - SELinux User Management API
7
8

SYNOPSIS

10       #include <semanage/user_record.h>
11       #include <semanage/users_policy.h>
12       #include <semanage/users_local.h>
13
14
15       This  object contains properties associated with a SELinux user.  Typi‐
16       cally many Unix users are mapped to the same SELinux user.  See  seman‐
17       age_seuser(3) for overview of the Unix user API.
18
19
20       For details on a specific function, see its manual page.
21
22

Record API Overview

24       semanage_user_create(3)-
25              create a user
26
27
28       semanage_user_free(3)-
29              release resources for this user
30
31
32       semanage_user_key_create(3)-
33              create a key, which can be used to identify a user
34
35
36       semanage_user_key_free(3)-
37              release resources for this user key
38
39
40       semanage_user_key_extract(3)-
41              create a key matching this user
42
43
44       semanage_user_clone(3)-
45              create an identical user (deep-copy clone)
46
47
48       semanage_user_compare(3)-
49              compare this user to the provided key
50
51
52       semanage_user_compare2(3)-
53              compare this user to another
54
55

Properties API Overview

57       semanage_user_get_name(3)-
58              return the name of this user
59
60
61       semanage_user_set_name(3)-
62              set the name of this user
63
64
65       semanage_user_get_prefix(3)-
66              return  the  labeling  prefix for this user, used to control the
67              contexts of user directories
68
69
70       semanage_user_set_prefix(3)-
71              set the labeling prefix for this user
72
73
74       semanage_user_get_mlslevel(3)-
75              return the default MLS level, which is assigned to this user  at
76              login time
77
78
79       semanage_user_set_mlslevel(3)-
80              set the default MLS level
81
82
83       semanage_user_get_mlsrange(3)-
84              return  the  range of valid MLS sensitivities and categories for
85              this user
86
87
88       semanage_user_set_mlsrange(3)-
89              set the range of valid MLS sensitivities and categories for this
90              user
91
92
93       semanage_user_add_role(3)-
94              add a role to the user's list of valid roles
95
96
97       semanage_user_del_role(3)-
98              remove a role from the user's list of valid roles
99
100
101       semanage_user_has_role(3)-
102              check if a role is valid for this user
103
104
105       semanage_user_get_num_roles(3)-
106              return the number of valid roles for this user
107
108
109       semanage_user_get_roles(3)-
110              return an array containing the roles for this user
111
112
113       semanage_user_set_roles(3)- set the roles for this user
114
115

Record Store API Overview

117       semanage_user_modify_local(3)-
118              add or update a user in the local store
119
120
121       semanage_user_del_local(3)-
122              delete a user from the local store
123
124
125       semanage_user_exists(3)-
126              check if a user is defined in the persistent policy
127
128
129       semanage_user_exists_local(3)-
130              check if a user is defined in the local store
131
132
133       semanage_user_query(3)-
134              query a user in the persistent policy
135
136
137       semanage_user_query_local(3)-
138              query a user in the local store
139
140
141       semanage_user_count(3)-
142              count the number of users defined in the persistent policy
143
144
145       semanage_user_count_local(3)-
146              count the number of users defined in the local store
147
148
149       semanage_user_iterate(3)-
150              execute a callback for each user in the persistent policy
151
152
153       semanage_user_iterate_local(3)-
154              execute a callback for each user in the local store
155
156
157       semanage_user_list(3)-
158              return an array containing all users in the persistent policy
159
160
161       semanage_user_list_local(3)-
162              return an array containing all users in the local store
163
164
165
166ivg2@cornell.edu                 16 March 2006                semanage_user(3)
Impressum