libsepol: rename validate_policydb to policydb_validate
Most global functions operating on a policy database use policydb as prefix. Since this function is not exported there should not be any external use. Signed-off-by: Christian Göttsche <cgzones@googlemail.com> Acked-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
parent
fc7bb9f05a
commit
938530171b
3 changed files with 3 additions and 3 deletions
|
@ -4570,7 +4570,7 @@ int policydb_read(policydb_t * p, struct policy_file *fp, unsigned verbose)
|
|||
}
|
||||
}
|
||||
|
||||
if (validate_policydb(fp->handle, p))
|
||||
if (policydb_validate(fp->handle, p))
|
||||
goto bad;
|
||||
|
||||
return POLICYDB_SUCCESS;
|
||||
|
|
|
@ -1330,7 +1330,7 @@ static void validate_array_destroy(validate_t flavors[])
|
|||
/*
|
||||
* Validate policydb
|
||||
*/
|
||||
int validate_policydb(sepol_handle_t *handle, policydb_t *p)
|
||||
int policydb_validate(sepol_handle_t *handle, policydb_t *p)
|
||||
{
|
||||
validate_t flavors[SYM_NUM] = {};
|
||||
|
||||
|
|
|
@ -4,4 +4,4 @@
|
|||
#include <sepol/policydb/policydb.h>
|
||||
|
||||
int value_isvalid(uint32_t value, uint32_t nprim);
|
||||
int validate_policydb(sepol_handle_t *handle, policydb_t *p);
|
||||
int policydb_validate(sepol_handle_t *handle, policydb_t *p);
|
||||
|
|
Loading…
Reference in a new issue