platform_external_selinux/libselinux
Eric Paris 79b6a8d78f libselinux: label_file: only run regex files one time
We currectly run all of the regex files 2 times.  The first time counts
the lines and does the simple validatation.  We then allocate an array
of exactly the right size to hold the entries and run them a second time
doing stronger validation, regex compile, etc.

This is dumb.  Just run them one time and use realloc to grow the size
of the array as needed.  At the end the array will get sized perfectly
to fit by the sorting function, so even if we accidentally allocated
entra memory we'll get it back.

Signed-off-by: Eric Paris <eparis@redhat.com>
2012-09-12 14:51:49 -04:00
..
include libselinux: expose selinux_boolean_sub 2012-09-12 13:15:00 -04:00
man libselinux: matchpathcon: add -m option to force file type check 2012-09-12 14:23:22 -04:00
src libselinux: label_file: only run regex files one time 2012-09-12 14:51:49 -04:00
utils libselinux: utils: avcstat: clear sa_mask set 2012-09-12 14:30:21 -04:00
ChangeLog Version bumps for upstream push 2012-06-28 14:02:29 -04:00
LICENSE initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile libselinux: Update Makefiles to handle /usrmove 2012-03-28 14:52:13 -04:00
VERSION Version bumps for upstream push 2012-06-28 14:02:29 -04:00