All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add option to remove HLL files and fix memory leaks
@ 2015-02-26 19:15 Yuli Khodorkovskiy
  2015-02-26 19:15 ` [PATCH 1/2] libsemanage: Add option to remove HLL files after compilation Yuli Khodorkovskiy
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Yuli Khodorkovskiy @ 2015-02-26 19:15 UTC (permalink / raw)
  To: selinux

This patchset adds a new option to semanage.conf to allow deleting HLL files after
compilation into CIL. It also fixes a memory leak in semanage.conf that was exposed
by the aforementioned patch.

An option to remove HLL files after compilation was originally discussed on the
list [1]. If enabled, the module store will use about half as much space on disk.
Additionally, less space will be used during a policy migration. Conversely, a
user might not want to use this option if the HLL to CIL compiler changed. This 
allows CIL files to be updated from undeleted HLL files in the module store when
rebuilding with semodule. Otherwise, the HLL files must be reinstalled to get
recompiled to CIL with an updated compiler.

[1] http://marc.info/?l=selinux&m=140562680432183&w=2

Yuli Khodorkovskiy (2):
  libsemanage: Add option to remove HLL files after compilation
  libsemanage: Fix memory leaks when parsing semanage.conf

 libsemanage/man/man5/semanage.conf.5 | 13 ++++++
 libsemanage/src/conf-parse.y         | 28 +++++++++--
 libsemanage/src/conf-scan.l          |  9 +---
 libsemanage/src/direct_api.c         | 91 ++++++++++++++++++++++++------------
 libsemanage/src/semanage_conf.h      |  1 +
 5 files changed, 101 insertions(+), 41 deletions(-)

-- 
1.9.3

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-02-27 13:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-26 19:15 [PATCH 0/2] Add option to remove HLL files and fix memory leaks Yuli Khodorkovskiy
2015-02-26 19:15 ` [PATCH 1/2] libsemanage: Add option to remove HLL files after compilation Yuli Khodorkovskiy
2015-02-26 19:16 ` [PATCH 2/2] libsemanage: Fix memory leaks when parsing semanage.conf Yuli Khodorkovskiy
2015-02-27 13:46 ` [PATCH 0/2] Add option to remove HLL files and fix memory leaks Steve Lawrence

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.