mac_from_msen(3C)
mac_from_msen, mac_from_mint, mac_from_msen_mint - convert independent sensitivity or integrity labels to mac_t
As shipped in IRIX 6.5.19. Unchanged since IRIX 6.5.
NAME mac_from_msen, mac_from_mint, mac_from_msen_mint - convert independent sensitivity or integrity labels to mac_t SYNOPSIS #include <sys/mac.h> mac_t mac_from_msen(msen_t msen); mac_t mac_from_mint(mint_t mintp); mac_t mac_from_msen_mint(msen_t msenp, mint_t mintp); DESCRIPTION mac_from_msen Return a mac_t constructed from the given msen label, substituting MINT_EQUAL_LABEL for the needed mint component. mac_from_mint Return a mac_t constructed from the given mint label, substituting MSEN_EQUAL_LABEL for the needed msen component. mac_from_msen_mint Return a mac_t constructed from the given msen and mint labels. RETURN VALUES mac_from_msen returns a mac_t, a pointer to an allocated struct mac_label, or a NULL pointer in the case of a failure. The mac_t should be freed when no longer needed by calling mac_free(3c). mac_from_mint returns a mac_t, a pointer to an allocated struct mac_label, or a NULL pointer in the case of a failure. The mac_t should be freed when no longer needed by calling mac_free(3c). mac_from_msen_mint returns a mac_t, a pointer to an allocated struct mac_label, or a NULL pointer in the case of a failure. The mac_t should be freed when no longer needed by calling mac_free(3c). ERRORS mac_from_msen: EINVAL given msen label is invalid ENOMEM could not allocate space for new label mac_from_mint: EINVAL given msen label is invalid ENOMEM could not allocate space for new label mac_from_msen_mint EINVAL given msen or mint label is invalid ENOMEM could not allocate space for new label SEE ALSO mac_from_text(3C)