1semanage_set_root(3) Libsemanage API documentation semanage_set_root(3)
2
3
4
6 semanage_set_root, semanage_root - SELinux Management API
7
8
10 Set/get the alternate root directory for SELinux configuration direc‐
11 tory.
12
13 #include <semanage/handle.h>
14
15 extern int semanage_set_root(const char *path);
16
17 extern const char *semanage_root(void);
18
19
21 The function semanage_set_root() sets an alternate root directory for
22 SELinux configuration paths to be used by the semanage library.
23
24
26 The function semanage_set_root() returns -1 in case of failure. Other‐
27 wise, 0 is returned.
28
29 The function semanage_root() returns the semanage root. The returned
30 value should not be modified by the caller.
31
32
34 semanage_handle_create(3), semanage_connect(3),
35
36
37
38dwalsh@redhat.com 1 June 2011 semanage_set_root(3)