selinux-policy/libselinux/man/man3/selinux_policy_root.3
2005-10-07 13:42:05 +00:00

18 lines
559 B
Groff

.TH "selinux_policy_root" "3" "25 May 2004" "dwalsh@redhat.com" "SE Linux API documentation"
.SH "NAME"
selinux_policy_root \- return the path of the SELinux policy files for this machine.
.SH "SYNOPSIS"
.B #include <selinux/selinux.h>
.sp
.B char *selinux_policy_root();
.br
.SH "DESCRIPTION"
.B selinux_policy_root
Reads the contents of the /etc/selinux/config file to determine which policy files should be used for this machine.
.SH "RETURN VALUE"
On success, returns a directory path containing the SELinux policy files.
On failure, NULL is returned.