From: Steve Lawrence <slawrence@tresys.com>
To: James Carter <jwcart2@tycho.nsa.gov>, <selinux@tycho.nsa.gov>
Subject: Re: [PATCH 0/3 v5] libsepol, policycoreutils, and checkpolicy: Add support for generating CIL to libsepol and checkpolicy
Date: Wed, 1 Apr 2015 13:29:34 -0400 [thread overview]
Message-ID: <551C2AFE.5030604@tresys.com> (raw)
In-Reply-To: <1427908281-11224-1-git-send-email-jwcart2@tycho.nsa.gov>
On 04/01/2015 01:11 PM, James Carter wrote:
> V5 Update usage functions for checkpolicy and checkmodule.
> V4 Adds the new command-line options to the checkpolicy and checkmodule man pages, adds error checking and messages to checkpolicy and checkmodule, updates libsepol's Android.mk and libsepol.map.in files as needed, and makes pp linke libsepol dynamically.
> V3 fixes another whitespace issue.
> V2 fixes some whitespace issues and make the new libsepol file LGPL instead of GPL.
>
> This patch set moves the code to generate CIL from pp.c in policycoreutils/hll/pp to libsepol, adds a new function to generate CIL from a module policydb, and modifies checkpolicy and checkmodule to support generating CIL as their output.
>
> The primary motivation of this work is to allow SE for Android to use the CIl compiler. Converting the policy.conf to CIL and then compiling to the kernel binary policy results in a policy that is about 20% smaller. The smaller size is because type expressions with negations are converted to type attribute sets in CIL instead of being expanded.
>
> James Carter (3):
> libsepol, policycoreutils: Move functions to convert a module package
> to CIL
> libsepol: add function to generate CIL from a module policydb
> checkpolicy: Add support for generating CIL
>
> checkpolicy/checkmodule.8 | 5 +-
> checkpolicy/checkmodule.c | 66 +-
> checkpolicy/checkpolicy.8 | 5 +-
> checkpolicy/checkpolicy.c | 85 +-
> libsepol/Android.mk | 1 +
> libsepol/include/sepol/module_to_cil.h | 8 +
> libsepol/src/libsepol.map.in | 3 +
> libsepol/src/module_to_cil.c | 4010 ++++++++++++++++++++++++++++++++
> policycoreutils/hll/pp/Makefile | 2 +-
> policycoreutils/hll/pp/pp.c | 3830 +-----------------------------
> 10 files changed, 4131 insertions(+), 3884 deletions(-)
> create mode 100644 libsepol/include/sepol/module_to_cil.h
> create mode 100644 libsepol/src/module_to_cil.c
>
Acked-by: Steve Lawrence <slawrence@tresys.com>
next prev parent reply other threads:[~2015-04-01 17:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-01 17:11 [PATCH 0/3 v5] libsepol, policycoreutils, and checkpolicy: Add support for generating CIL to libsepol and checkpolicy James Carter
2015-04-01 17:11 ` [PATCH 1/3 v5] libsepol, policycoreutils: Move functions to convert a module package to CIL James Carter
2015-04-01 17:11 ` [PATCH 2/3 v5] libsepol: add function to generate CIL from a module policydb James Carter
2015-04-01 17:11 ` [PATCH 3/3 v5] checkpolicy: Add support for generating CIL James Carter
2015-04-01 17:29 ` Steve Lawrence [this message]
2015-05-06 22:33 ` [PATCH 0/3 v5] libsepol, policycoreutils, and checkpolicy: Add support for generating CIL to libsepol and checkpolicy Jeffrey Vander Stoep
2015-05-08 12:11 ` Stephen Smalley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=551C2AFE.5030604@tresys.com \
--to=slawrence@tresys.com \
--cc=jwcart2@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.