Reference

security_notify_perm(2)

Notify that a permission was used

NAME

security_notify_perm - Notify that a permission was used

SYNOPSIS

#include <ss.h>

int security_notify_perm(security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t requested);

DESCRIPTION

The security_notify_perm call is used to notify the security server that an operation associated with a previously granted permission has successfully completed.

RETURN VALUE

A zero is returned if the notification was successful. On error, -1 is returned, and errno is set appropriately.

ERRORS

EINVAL

The source SID, target SID or target class was invalid.

EACCES

The process is not authorized to invoke this call.

SEE ALSO

security_compute_av(2), security_sid_to_context(2), security_context_to_sid(2), security_transition_sid(2), security_member_sid(2), security_load_policy(2), security_notify_perm(2), security_get_sids(2)