selinux/libsepol/include/sepol/kernel_to_cil.h
James Carter 70a480bfcd libsepol: Add ability to convert binary policy to CIL
It would sometimes be helpful for debugging or verification purposes
to be able to convert a binary policy to a human-readable form.

Create new function, sepol_kernel_policydb_to_cil(), that takes a
policydb created from a binary policy and writes CIL policy to the
provided FILE pointer.

Signed-off-by: James Carter <jwcart2@tycho.nsa.gov>
2017-04-05 12:23:05 -04:00

6 lines
125 B
C

#include <stdlib.h>
#include <sepol/policydb/policydb.h>
int sepol_kernel_policydb_to_cil(FILE *fp, struct policydb *pdb);