File: selinux_getpolicytype.3

package info (click to toggle)
libselinux 2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 2,120 kB
  • sloc: ansic: 14,895; makefile: 324; sh: 20
file content (23 lines) | stat: -rw-r--r-- 597 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.TH "selinux_getpolicytype" "3" "24 Sep 2008" "dwalsh@redhat.com" "SELinux API documentation"
.SH "NAME"
selinux_getpolicytype \- get the type of SELinux policy running on the system
.
.SH "SYNOPSIS"
.B #include <selinux/selinux.h>
.sp
.BI "int selinux_getpolicytype(char **" policytype );
.
.SH "DESCRIPTION"
.BR selinux_getpolicytype ()
Reads the contents of the
.I /etc/selinux/config
file to determine the SELinux policy used on the system, and sets
.I \%policytype
accordinly.
.
.SH "RETURN VALUE"
On success, zero is returned.
On failure, \-1 is returned.
.
.SH "SEE ALSO"
.BR selinux "(8)"