mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-24 06:52:12 +00:00
70a480bfcd
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>
6 lines
125 B
C
6 lines
125 B
C
#include <stdlib.h>
|
|
|
|
#include <sepol/policydb/policydb.h>
|
|
|
|
int sepol_kernel_policydb_to_cil(FILE *fp, struct policydb *pdb);
|