NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | SEE ALSO | COLOPHON |
|
semanage_set_root(3) Libsemanage API documentation semanage_set_root(3)
semanage_set_root, semanage_root - SELinux Management API
Set/get the alternate root directory for SELinux configuration directory. #include <semanage/handle.h> extern int semanage_set_root(const char *path); extern const char *semanage_root(void);
The function semanage_set_root() sets an alternate root directory for SELinux configuration paths to be used by the semanage library.
The function semanage_set_root() returns -1 in case of failure. Otherwise, 0 is returned. The function semanage_root() returns the semanage root. The returned value should not be modified by the caller.
semanage_handle_create(3), semanage_connect(3),
This page is part of the selinux (Security-Enhanced Linux user-space
libraries and tools) project. Information about the project can be
found at ⟨https://github.com/SELinuxProject/selinux/wiki⟩. If you
have a bug report for this manual page, see
⟨https://github.com/SELinuxProject/selinux/wiki/Contributing⟩. This
page was obtained from the project's upstream Git repository
⟨https://github.com/SELinuxProject/selinux⟩ on 2018-02-02. (At that
time, the date of the most recent commit that was found in the repos‐
itory was 2018-01-25.) If you discover any rendering problems in
this HTML version of the page, or you believe there is a better or
more up-to-date source for the page, or you have corrections or
improvements to the information in this COLOPHON (which is not part
of the original manual page), send a mail to man-pages@man7.org
dwalsh@redhat.com 1 June 2011 semanage_set_root(3)