Get the flags for a domain whitelist
#include <fs_crypto_api.h>
#include <sys/fs_crypto.h>
int fs_crypto_domain_whitelist_get_flags(
const char *path,
int domain,
unsigned type,
unsigned *flags,
int *preply)
The fs_crypto_domain_whitelist_get_flags() function performs whitelist configuration for a domain whitelist. This function calls the fs_crypto_domain_whitelist_configure() function. More specifically, this executes the whitelist action FS_CRYPTO_WHITELIST_ACTION_CONFIGURE. 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 |