NAME
selabel_digest - Return digest of specfiles and list of files usedSYNOPSIS
#include <selinux/selinux.h>unsigned char **digest, size_t *digest_len,
DESCRIPTION
selabel_digest() performs an operation on the handle hnd, returning the results of the SHA1 digest pointed to by digest, whose length will be digest_len. The list of specfiles used in the SHA1 digest calculation is returned in specfiles with the number of entries in num_specfiles.RETURN VALUE
On success, zero is returned. On error, -1 is returned and errno is set appropriately.ERRORS
- EINVAL
- No digest available (returned if SELABEL_OPT_DIGEST option not enabled).
- ENOMEM
- An attempt to allocate memory failed.
SEE ALSO
selabel_open(3), selinux(8)16 Sept 2015 |