Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

GNU/Linux

CentOS 5.4

selinux_getenforcemode(3)


selinux_getenforcemode

selinux_getenforcemode

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO

NAME

selinux_getenforcemode − get the enforcing state of SELinux

SYNOPSIS

#include <selinux/selinux.h>

int selinux_getenforcemode(int *enforce);

DESCRIPTION

selinux_getenforcemode Reads the contents of the /etc/selinux/config file to determine how the system was setup to run SELinux.

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.

RETURN VALUE

On success, zero is returned. On failure, -1 is returned.

SEE ALSO

selinux(8)



selinux_getenforcemode(3)