Returns a handle to a permission associated with a custom class
#include <secpol/secpol.h>
secpol_permission_t* secpol_get_permission(secpol_file_t *handle,
const char *class,
const char *permission,
unsigned flags)
By default, the secpol_get_permission() function will succeed even when no security policy is in use or if the class or permission cannot be found. However, the permission will always be denied. This behavior may be changed by passing appropriate flags.
A handle to the permission, or NULL if the call failed (errno is set).