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:
Christian Göttsche 2022-07-21 17:24:40 +02:00 committed by James Carter
parent fc7bb9f05a
commit 938530171b
3 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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] = {};

View file

@ -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);