Go to main content

man pages section 3: Basic Library Functions

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

sx_enabled(3C)

Name

sx_enabled - query and return the state of a security extension

Synopsis

#include <sys/secext.h>

boolean_t sx_enabled(secext_ext_t extension);

Description

The sx_enabled() function is used to query the state of a security extension in the calling process. The extension argument specifies the security extension to query. The extensions that are currently supported are as follows:

secext_ext_t Value
Extension Name
Architecture
SX_ADIHEAP
ADI-based Heap Protection
SPARC
SX_ADISTACK
ADI-based Stack Protection
SPARC
SX_ASLR
Address Space Layout Randomization
SPARC, i386
SX_NXHEAP
Non-Executable Heap
SPARC, i386
SX_NXSTACK
Non-Executable Stack
SPARC, i386
SX_SSBD
Speculative Store Bypass Disable
i386

Only process level security extensions may be queried via this interface, not system-wide or kernel level security extensions.

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
None

See Also

sxadm(8)