Go to main content

man pages section 3: Basic Library Functions

Exit Print View

Updated: Wednesday, August 8, 2018
 
 

sx_enabled (3C)

Name

sx_enabled - query and return the state of a security extension

Synopsis

#include <sys/secext.h>

boolean_t sx_enabled(sx_t extension);

Description

The sx_enabled() function is used to query if a security extension is enabled or not. The extension argument specifies the security extension to query. The extensions that are currently supported are as follows:

SX_ASLR       Address Space Layout Randomization
SX_NXHEAP     Non-Executable Heap
SX_NXSTACK    Non-Executable Stack
SX_ADIHEAP    ADI-based Heap Protection
SX_ADISTACK   ADI-based Stack Protection

For more information about security extensions, see the sxadm(8) man page.

Return Values

If the security extension is enabled, B_TRUE is returned. Else, B_FALSE is returned.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
MT-Safe
Standard

See Also

sxadm(8)