Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jwcart2 committed Apr 5, 2017
1 parent 03298a2 commit 70a480b
Show file tree
Hide file tree
Showing 5 changed files with 4,023 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libsepol/include/sepol/kernel_to_cil.h
@@ -0,0 +1,5 @@
#include <stdlib.h>

#include <sepol/policydb/policydb.h>

int sepol_kernel_policydb_to_cil(FILE *fp, struct policydb *pdb);

0 comments on commit 70a480b

Please sign in to comment.