sx_enabled - query and return the state of a security extension
#include <sys/secext.h> boolean_t sx_enabled(sx_t extension);
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.
If the security extension is enabled, B_TRUE is returned. Else, B_FALSE is returned.
See attributes(7) for descriptions of the following attributes: