Signup
Search Linux manpages For:  

security_getenforce(3) -- Linux man page

 

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.


 
LINUX MAN PAGES
Man1 -- User Commands (Intro)
Man2 -- System Calls (Intro)
Man3 -- Library Functions (Intro)
Man4 -- Special Files (Intro)
Man5 -- File Formats (Intro)
Man6 -- Games (Intro)
Man7 -- Miscellaneous (Intro)
Man8 -- Administration (Intro)
Mann -- TCL Functions (not available)


WEB HOSTING SHOWCASE




 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2012 Broadband Media, Inc. All rights reserved.