72 lines
2.0 KiB
HTML
72 lines
2.0 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of selinux_policy_root</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>selinux_policy_root</H1>
|
|
Section: SELinux API documentation (3)<BR>Updated: 25 May 2004<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
selinux_policy_root - return the path of the SELinux policy files for this machine
|
|
selinux_set_policy_root - Set an alternate SELinux root path for the SELinux policy files for this machine.
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>#include <<A HREF="file:///usr/include/selinux/selinux.h">selinux/selinux.h</A>></B>
|
|
|
|
<P>
|
|
<B>const char *selinux_policy_root(void);</B>
|
|
|
|
<P>
|
|
<B>int selinux_set_policy_root(const char *policypath);</B>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>selinux_policy_root</B>()
|
|
|
|
reads the contents of the
|
|
<I>/etc/selinux/config</I>
|
|
|
|
file to determine which policy files should be used for this machine.
|
|
<B>selinux_set_policy_root</B>()
|
|
|
|
sets up all policy paths based on the alternate root
|
|
<P>
|
|
<I>/etc/selinux/config</I>
|
|
|
|
file to determine which policy files should be used for this machine.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>RETURN VALUE</H2>
|
|
|
|
On success, selinux_policy_root returns a directory path containing the SELinux policy files.
|
|
On failure, selinux_policy_root returns NULL.
|
|
<P>
|
|
On success, selinux_set_policy_root returns 0 on success -1 on failure.
|
|
<P>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+selinux">selinux</A></B>(8)
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="4"><A HREF="#lbAE">RETURN VALUE</A><DD>
|
|
<DT id="5"><A HREF="#lbAF">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:56 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|