install+SELinux: reduce a 12x performance hit to ~1.5x
authorJim Meyering <meyering@redhat.com>
Sat, 10 Nov 2007 16:31:31 +0000 (17:31 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 10 Nov 2007 17:41:14 +0000 (18:41 +0100)
commit56e3106e934796f993decd08b3c4224d3830209a
tree899d1c9f84823122e8eed0d2c2a13c488216f267
parentca5b9746c86355cbb6c2053242b2e800a3f1ca4f
install+SELinux: reduce a 12x performance hit to ~1.5x

* src/install.c (setdefaultfilecon): Call matchpathcon_init_prefix,
to mitigate what would otherwise be a large performance hit due to
the use of matchpathcon.
Dan Walsh suggested the use of matchpathcon_init_prefix.
* gl/lib/se-selinux.in.h (matchpathcon_init_prefix): Define.

Signed-off-by: Jim Meyering <meyering@redhat.com>
ChangeLog
gl/lib/se-selinux.in.h
src/install.c