Revoke a client's access to a domain
#include <fs_crypto_api.h>
#include <sys/fs_crypto.h>
int fs_crypto_domain_whitelist_ctrl_access_grant(
const char *path,
int domain,
unsigned type,
const void *data,
int *preply)
The fs_crypto_domain_whitelist_ctrl_access_revoke() function performs a control action for a domain whitelist based on the specified type of whitelist client data. This function calls fs_crypto_domain_whitelist_ctrl(), with the action specified as FS_CRYPTO_WHITELIST_ACTION_ACCESS_REVOKE. The data argument must point to a single data item associated with the type. For example, when FS_CRYPTO_WHITELIST_TYPE_PID is specified, data must be a pointer to a pid_t value.
This function can also return any of the errors indicated by devctl() or open().
| Safety: | |
|---|---|
| Cancellation point | Yes |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |