libsepol: fix reallocarray imports

In f0a5f6e, calls to reallocarray were introduced. Ensure that the
correct header (private.h) is included when necessary.

Fixes: f0a5f6e ("libsepol: use reallocarray wrapper to avoid overflows")
Signed-off-by: Thiébaud Weksteen <tweek@google.com>
Acked-by: James Carter <jwcart2@gmail.com>
Test: Built using Android CI (glibc 2.17)
This commit is contained in:
Thiébaud Weksteen 2022-03-03 16:23:06 +11:00 committed by James Carter
parent 8871fd603a
commit cc1bd5e834
2 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,7 @@
#include <sepol/policydb/hashtab.h>
#include <sepol/policydb/symtab.h>
#include "private.h"
#include "kernel_to_common.h"

View File

@ -28,6 +28,8 @@
#include <sepol/policydb/policydb.h>
#include <sepol/policydb/util.h>
#include "private.h"
struct val_to_name {
unsigned int val;
char *name;