secpol_get_type_name()

Return the type name associated with a type ID

Synopsis:

#include <secpol/secpol.h>
const char* secpol_get_type_name(secpol_file_t *handle,
                                 uint32_t type_id)

Arguments:

handle
Handle to the security policy file. Usually NULL, which specifies that the default security policy file is used (either the system default or one set using secpol_open()).
type_id
ID of the type.

Library:

libsecpol

Returns:

Name of the type, or NULL if the type ID was not found.