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 4.8

i386

security_getenforce(3)


security_getenforce

security_getenforce

NAME
SYNOPSIS
DESCRIPTION

NAME

security_getenforce, security_setenforce − get or set the enforcing state of SE Linux

SYNOPSIS

#include <selinux/selinux.h>

int security_getenforce();
int security_setenforce(int
value);

DESCRIPTION

security_getenforce returns 0 if SE Linux is running in permissive mode, 1 if it is running in enforcing mode, and -1 on error.

security_setenforce sets SE Linux to enforcing mode if the value 1 is passed in, and sets it to permissive mode if 0 is passed in. On success 0 is returned, on error -1 is returned.



security_getenforce(3)