From mboxrd@z Thu Jan 1 00:00:00 1970 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 t76EUWJI018630 for ; Thu, 6 Aug 2015 10:30:32 -0400 From: Yuli Khodorkovskiy To: Subject: [PATCH v2 0/3] Add support for extracting modules Date: Thu, 6 Aug 2015 10:30:11 -0400 Message-ID: <1438871414-62292-1-git-send-email-ykhodorkovskiy@tresys.com> MIME-Version: 1.0 Content-Type: text/plain List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: This patchset adds support for extracting modules from the module store as hll or cil to the current working directory. This also adds a function to the libsemanage API to extract modules and fixes a memory leak discovered while implementing this functionality. Changes from v1: - Add fallback behavior if a module does not exist at the default priority when extracting with semodule. Yuli Khodorkovskiy (3): libsemanage: Add ability to extract modules libsemanage: Fix null pointer dereference in semanage_module_key_destroy policycoreutils/semodule: update semodule to allow extracting modules libsemanage/include/semanage/modules.h | 17 ++ libsemanage/src/direct_api.c | 310 ++++++++++++++++++++++----------- libsemanage/src/libsemanage.map | 1 + libsemanage/src/modules.c | 23 ++- libsemanage/src/policy.h | 8 + libsemanage/src/semanageswig_python.i | 5 + policycoreutils/semodule/semodule.8 | 14 ++ policycoreutils/semodule/semodule.c | 146 +++++++++++++++- 8 files changed, 416 insertions(+), 108 deletions(-) -- 1.9.3