commit | 9ebd779353764299e40f63f843eb26209ffbd771 | [log] [tgz] |
---|---|---|
author | Eric Paris <eparis@redhat.com> | Thu Aug 30 13:43:54 2012 -0700 |
committer | Eric Paris <eparis@redhat.com> | Fri Feb 01 12:08:57 2013 -0500 |
tree | 8acf05bde09429e4dd1fb5fc1a31a400e6b34d20 | |
parent | dac8b32c1781dde089e8fc45904fc01a1a21b8ed [diff] |
libselinux: label_file: use precompiled filecontext when possible When loading the filecontext database, check to see if there is a newer binary version. If so, mmap that file, is used to populate the regex db instead of reading from the text representation and compiling regex's as needed. If the text file is newer it will use the text version and ignore the binary version. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>