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