Query: security_setenforce
OS: centos
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
security_getenforce(3) SELinux API documentation security_getenforce(3)NAMEsecurity_getenforce, security_setenforce, security_deny_unknown - get or set the enforcing state of SELinuxSYNOPSIS#include <selinux/selinux.h> int security_getenforce(void); int security_setenforce(int value); int security_deny_unknown(void);DESCRIPTIONsecurity_getenforce() returns 0 if SELinux is running in permissive mode, 1 if it is running in enforcing mode, and -1 on error. security_setenforce() sets SELinux 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_deny_unknown() returns 0 if SELinux treats policy queries on undefined object classes or permissions as being allowed, 1 if such queries are denied, and -1 on error.SEE ALSOselinux(8) russell@coker.com.au 1 January 2004 security_getenforce(3)
Related Man Pages |
---|
selinux_status_close(3) - debian |
selinux_status_open(3) - debian |
selinux_status_updated(3) - debian |
selinux_status_getenforce(3) - centos |
selinux_status_open(3) - centos |
Similar Topics in the Unix Linux Community |
---|
Is UNIX an open source OS ? |
Weird 'find' results |
Set hard block limit for user using quota |
DB2 convert digits to binary format |
Unsure why access time on a directory change isn't changing |