Debian Codegraph @

libsemanage/man/man3/semanage_set_root.3

raw
1 .TH semanage_set_root 3 "1 June 2011" "[email protected]" "Libsemanage API documentation"
2
3 .SH "NAME"
4 semanage_set_root, semanage_root \- SELinux Management API
5
6 .SH "SYNOPSIS"
7 Set/get the alternate root directory for SELinux configuration directory.
8
9 .B #include <semanage/handle.h>
10
11 .B extern int semanage_set_root(const char *path);
12
13 .B extern const char *semanage_root(void);
14
15 .SH "DESCRIPTION"
16 .TP
17 The function semanage_set_root() sets an alternate root directory for SELinux configuration paths to be used by the semanage library.
18
19 .SH "RETURN VALUE"
20 The function semanage_set_root() returns \-1 in case of failure. Otherwise, 0 is returned.
21
22 The function semanage_root() returns the semanage root. The returned value should not be modified by the caller.
23
24 .SH "SEE ALSO"
25 .BR semanage_handle_create "(3), " semanage_connect "(3), "