File: selinux_getenforcemode.3

package info (click to toggle)
libselinux 1.32-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,192 kB
  • ctags: 2,205
  • sloc: ansic: 13,005; sh: 195; makefile: 133; python: 103
file content (22 lines) | stat: -rw-r--r-- 717 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
.TH "selinux_getenforcemode" "3" "25 May 2004" "dwalsh@redhat.com" "SE Linux API documentation"
.SH "NAME"
selinux_getenforcemode \- get the enforcing state of SE Linux
.SH "SYNOPSIS"
.B #include <selinux/selinux.h>
.sp
.B int selinux_getenforcemode(int *enforce);
.br

.SH "DESCRIPTION"
.B selinux_getenforcemode
Reads the contents of the /etc/selinux/config file to determine how the 
system was setup to run SELinux.
.br
Sets the value of enforce to 1 if SELinux should be run in enforcing mode.
Sets the value of enforce to 0 if SELinux should be run in permissive mode.
Sets the value of enforce to -1 if SELinux should be disabled.
.SH "RETURN VALUE"
On success, zero is returned.
On failure, -1 is returned.