Update the access policy of a given credential.
#include <sys/credential/credential_policy.h>
int credential_set_access_policy(credential_t *cred,
const credential_access_subject_t *subject,
credential_access_permission_mask_t permission)
BlackBerry 10.3.1
The credential which is protected by the access policy.
The access subject whose access permissions you wish to update. Set this parameter to 0 to modify the global permissions.
Access permission flags that should be assigned to target subject.
This function update the permission flags for the given credential for the specified access subject.
For example, for an credential, a read-only permission can be granted to everyone, or a read/write permission can be granted to a specific application.
0 if operation was successful, error code otherwise.