security_notify_perm2
Notify that a permission was used
Usage
#include <ss.h>
int security_notify_perm(security_id_t ssid, security_id_t tsid, security_class_t tclass, access_vector_t requested);
Overview
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. |