Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id t7VCsTae016574 for ; Mon, 31 Aug 2015 08:54:29 -0400 From: Steve Lawrence To: SELinux List Subject: [PATCH v2 0/3] Add CIL extended avrule & ioctl whitelist support Date: Mon, 31 Aug 2015 08:53:54 -0400 Message-ID: <1441025637-18267-1-git-send-email-slawrence@tresys.com> MIME-Version: 1.0 Content-Type: text/plain List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: Patchset adds CIL ioctl whitelist support and documentation, as well as fixes memory leak discovered while examining existing ioctl support. Differences in v2: - Fixes unused variable error in patch 2/3 - Adds extended avrule examples to policy.cil in patch 3/3 - Removes *bounds statements in patch 3/3, which had bounds violations and are better tested in other test files - Fixes whitespace errors in all patches Steve Lawrence (3): libsepol: fix memory leak when destroying avtab containing extended avrules libsepol/cil: add ioctl whitelist support secilc: Add documentation/examples for allowx, auditallowx, dontauditx, and permissionx libsepol/cil/src/cil.c | 63 +++- libsepol/cil/src/cil_binary.c | 360 ++++++++++++++++++++- libsepol/cil/src/cil_build_ast.c | 175 ++++++++++ libsepol/cil/src/cil_build_ast.h | 4 + libsepol/cil/src/cil_copy_ast.c | 59 ++++ libsepol/cil/src/cil_flavor.h | 2 + libsepol/cil/src/cil_internal.h | 28 ++ libsepol/cil/src/cil_post.c | 144 ++++++++- libsepol/cil/src/cil_resolve_ast.c | 79 +++++ libsepol/cil/src/cil_verify.c | 4 +- libsepol/src/avtab.c | 3 + secilc/docs/cil_access_vector_rules.xml | 172 ++++++++++ .../docs/cil_class_and_permission_statements.xml | 95 ++++++ secilc/docs/cil_container_statements.xml | 23 +- secilc/test/policy.cil | 9 +- 15 files changed, 1189 insertions(+), 31 deletions(-) -- 2.4.3