All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] libsepol and checkpolicy: Add ability to expand some attributes in binary policy
@ 2017-04-11 17:53 James Carter
  2017-04-11 17:53 ` [PATCH 1/2] libsepol/cil: " James Carter
                   ` (3 more replies)
  0 siblings, 4 replies; 24+ messages in thread
From: James Carter @ 2017-04-11 17:53 UTC (permalink / raw)
  To: selinux

The number of type attributes included in the binary policy is becomming a performance issue in some cases.

This patch set more aggressives removes attributes and gives the options to expand and remove all auto-generated attributes and all attributes with fewer than a given amount of attributes assigned.

Comparison of the number of attributes remaining in the binary policy
     mls   normal  android
org  310     286     255
old  268     251     130 
max  154      20      17
min  226     173     119
def  224     170      80
gen  221     170      46
u5   191     112      59 

Org - Number of attributes in the CIL policy 
Old - Results without this patch set
Max - Remove the maximum number of attributes: "-G -X 9999"
Min - Remove the minimum number of attributes: "-X 0"
Def - The new defaults for CIL
Gen - Just removing auto-generated attributes: "-G"
U5  - Remove attributes with less than five members: "-X 5"


James Carter (2):
  libsepol/cil: Add ability to expand some attributes in binary policy
  secilc: Add options to control the expansion of attributes

 libsepol/cil/include/cil/cil.h     |   2 +
 libsepol/cil/src/cil.c             |  12 ++
 libsepol/cil/src/cil_binary.c      | 253 +++++++++++++++++++++++++++----------
 libsepol/cil/src/cil_internal.h    |   7 +-
 libsepol/cil/src/cil_post.c        |  32 +++--
 libsepol/cil/src/cil_resolve_ast.c |  25 ++--
 libsepol/src/libsepol.map.in       |   2 +
 secilc/secil2conf.c                |   2 +
 secilc/secilc.8.xml                |  10 ++
 secilc/secilc.c                    |  31 ++++-
 10 files changed, 275 insertions(+), 101 deletions(-)

-- 
2.7.4

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

end of thread, other threads:[~2017-04-12 20:16 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11 17:53 [PATCH 0/2] libsepol and checkpolicy: Add ability to expand some attributes in binary policy James Carter
2017-04-11 17:53 ` [PATCH 1/2] libsepol/cil: " James Carter
2017-04-11 18:37   ` Dominick Grift
2017-04-11 18:46     ` Dominick Grift
2017-04-11 19:17       ` James Carter
2017-04-11 19:33         ` Dominick Grift
2017-04-11 19:37           ` Dominick Grift
2017-04-11 19:13     ` James Carter
2017-04-12 17:27   ` Jeffrey Vander Stoep
2017-04-11 17:53 ` [PATCH 2/2] secilc: Add options to control the expansion of attributes James Carter
2017-04-11 20:31   ` Nicolas Iooss
2017-04-12 13:02     ` James Carter
2017-04-11 19:27 ` [PATCH 0/2] libsepol and checkpolicy: Add ability to expand some attributes in binary policy James Carter
2017-04-11 20:06   ` Jeffrey Vander Stoep
2017-04-11 20:29     ` Dominick Grift
2017-04-12  6:11 ` Dominick Grift
2017-04-12 13:26   ` James Carter
2017-04-12 13:35     ` James Carter
2017-04-12 14:07       ` Dominick Grift
2017-04-12 13:35     ` Dominick Grift
2017-04-12 18:20       ` James Carter
2017-04-12 19:12         ` Dominick Grift
2017-04-12 20:07           ` James Carter
2017-04-12 20:16             ` Dominick Grift

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.