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
|
|
|
|
.
|
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
|
|
|
.
|
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
|
|
|
|
.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"
|
|
|
|
On success, returns a directory path containing the SELinux policy files.
|
|
|
|
On failure, NULL is returned.
|
2012-11-13 20:15:34 +00:00
|
|
|
.
|
2008-08-19 19:30:36 +00:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR selinux "(8)"
|