man-pages/man3/selinux_binary_policy_path.3.html
2021-03-31 01:06:50 +01:00

179 lines
4.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of selinux_binary_policy_path</TITLE>
</HEAD><BODY>
<H1>selinux_binary_policy_path</H1>
Section: SELinux API Documentation (3)<BR>Updated: 15 November 2004<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
selinux_path, selinux_policy_root, selinux_binary_policy_path, selinux_current_policy_path,
selinux_failsafe_context_path, selinux_removable_context_path,
selinux_default_context_path, selinux_user_contexts_path,
selinux_file_context_path, selinux_media_context_path,
selinux_contexts_path - These functions return the paths to the active SELinux policy configuration
directories and files
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>#include &lt;<A HREF="file:///usr/include/selinux/selinux.h">selinux/selinux.h</A>&gt;</B>
<P>
<P>
<B>const char *selinux_path(void);</B>
<P>
<B>const char *selinux_policy_root(void);</B>
<P>
<B>const char *selinux_binary_policy_path(void);</B>
<P>
<B>const char *selinux_current_policy_path(void);</B>
<P>
<B>const char *selinux_failsafe_context_path(void);</B>
<P>
<B>const char *selinux_removable_context_path(void);</B>
<P>
<B>const char *selinux_default_context_path(void);</B>
<P>
<B>const char *selinux_user_contexts_path(void);</B>
<P>
<B>const char *selinux_usersconf_path(void);</B>
<P>
<B>const char *selinux_x_context_path(void);</B>
<P>
<B>const char *selinux_sepgsql_context_path(void);</B>
<P>
<B>const char *selinux_file_context_path(void);</B>
<P>
<B>const char *selinux_media_context_path(void);</B>
<P>
<B>const char *selinux_securetty_types_path(void);</B>
<P>
<B>const char *selinux_contexts_path(void);</B>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
These functions return the paths to the active policy configuration
directories and files based on the settings in
<I>/etc/selinux/config</I>.
<P>
<B>selinux_path</B>()
returns the top-level SELinux configuration directory.
<P>
<B>selinux_policy_root</B>()
returns the top-level policy directory.
<P>
<B>selinux_binary_policy_path</B>()
returns the binary policy file loaded into kernel.
<P>
<B>selinux_current_policy_path</B>()
returns the currently loaded policy file from the kernel.
<P>
<B>selinux_default_type_path</B>()
returns the context file mapping roles to default types.
<P>
<B>selinux_failsafe_context_path</B>()
returns the failsafe context for emergency logins.
<P>
<B>selinux_removable_context_path</B>()
returns the filesystem context for removable media.
<P>
<B>selinux_default_context_path</B>()
returns the system-wide default contexts for user sessions.
<P>
<B>selinux_user_contexts_path</B>()
returns the directory containing per-user default contexts.
<P>
<B>selinux_usersconf_path</B>()
returns the file containing mapping between Linux Users and SELinux users.
<P>
<B>selinux_x_context_path</B>()
returns the file containing configuration for XSELinux extension.
<P>
<B>selinux_sepgsql_context_path</B>()
returns the file containing configuration for SE-PostgreSQL.
<P>
<B>selinux_netfilter_context_path</B>()
returns the default netfilter context.
<P>
<B>selinux_file_context_path</B>()
returns the default system file contexts configuration.
<P>
<B>selinux_file_context_local_path</B>()
returns the local customization file contexts configuration.
<P>
<B>selinux_file_context_homedir_path</B>()
returns the home directory file contexts configuration.
<P>
<B>selinux_media_context_path</B>()
returns the file contexts for media device nodes.
<P>
<B>selinux_contexts_path</B>()
returns the directory containing all of the context configuration files.
<P>
<B>selinux_securetty_types_path</B>()
returns the defines tty types for newrole securettys.
<A NAME="lbAE">&nbsp;</A>
<H2>AUTHOR</H2>
This manual page was written by Dan Walsh &lt;<A HREF="mailto:dwalsh@redhat.com">dwalsh@redhat.com</A>&gt;.
<A NAME="lbAF">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?8+selinux">selinux</A></B>(8)
<P>
<HR>
<A NAME="index">&nbsp;</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">AUTHOR</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>