2008-08-19 19:30:36 +00:00
|
|
|
.TH "selinux_policy_root" "3" "25 May 2004" "dwalsh@redhat.com" "SELinux API documentation"
|
|
|
|
.SH "NAME"
|
2012-11-13 20:15:34 +00:00
|
|
|
selinux_policy_root \- return the path of the SELinux policy files for this machine
|
2013-10-09 18:37:31 +00:00
|
|
|
selinux_set_policy_root \- Set an alternate SELinux root path for the SELinux policy files for this machine.
|
2012-11-13 20:15:34 +00:00
|
|
|
.
|
2008-08-19 19:30:36 +00:00
|
|
|
.SH "SYNOPSIS"
|
|
|
|
.B #include <selinux/selinux.h>
|
|
|
|
.sp
|
2012-11-16 09:03:00 +00:00
|
|
|
.B const char *selinux_policy_root(void);
|
2012-11-13 20:15:34 +00:00
|
|
|
.
|
2013-10-09 18:37:31 +00:00
|
|
|
.sp
|
|
|
|
.B int selinux_set_policy_root(const char *policypath);
|
|
|
|
.
|
2008-08-19 19:30:36 +00:00
|
|
|
.SH "DESCRIPTION"
|
2012-11-13 20:15:34 +00:00
|
|
|
.BR selinux_policy_root ()
|
|
|
|
reads the contents of the
|
2013-10-09 18:37:31 +00:00
|
|
|
.I /etc/selinux/config
|
|
|
|
file to determine which policy files should be used for this machine.
|
|
|
|
.
|
|
|
|
.BR selinux_set_policy_root ()
|
2018-06-30 10:51:24 +00:00
|
|
|
sets up all policy paths based on the alternate root
|
2013-10-09 18:37:31 +00:00
|
|
|
|
2012-11-13 20:15:34 +00:00
|
|
|
.I /etc/selinux/config
|
|
|
|
file to determine which policy files should be used for this machine.
|
|
|
|
.
|
2008-08-19 19:30:36 +00:00
|
|
|
.SH "RETURN VALUE"
|
2013-10-09 18:37:31 +00:00
|
|
|
On success, selinux_policy_root returns a directory path containing the SELinux policy files.
|
|
|
|
On failure, selinux_policy_root returns NULL.
|
|
|
|
|
|
|
|
On success, selinux_set_policy_root returns 0 on success -1 on failure.
|
|
|
|
|
2012-11-13 20:15:34 +00:00
|
|
|
.
|
2008-08-19 19:30:36 +00:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR selinux "(8)"
|