1selinux_policy_root(3)     SELinux API documentation    selinux_policy_root(3)
2
3
4

NAME

6       selinux_policy_root  -  return the path of the SELinux policy files for
7       this machine selinux_set_policy_root - Set an  alternate  SELinux  root
8       path for the SELinux policy files for this machine.
9

SYNOPSIS

11       #include <selinux/selinux.h>
12
13       const char *selinux_policy_root(void);
14
15       int selinux_set_policy_root(const char *policypath);
16

DESCRIPTION

18       selinux_policy_root()  reads  the  contents  of the /etc/selinux/config
19       file to determine which policy files should be used for  this  machine.
20       selinux_set_policy_root()  sets  up  all  all policy paths based on the
21       alternate root
22
23       /etc/selinux/config file to determine which policy files should be used
24       for this machine.
25

RETURN VALUE

27       On success, selinux_policy_root returns a directory path containing the
28       SELinux policy files.  On failure, selinux_policy_root returns NULL.
29
30       On success, selinux_set_policy_root returns 0 on success -1 on failure.
31
32

SEE ALSO

34       selinux(8)
35
36
37
38dwalsh@redhat.com                 25 May 2004           selinux_policy_root(3)
Impressum