From: Jim Meyering To: Eamon Walsh Cc: SE Linux , bug-coreutils@gnu.org Subject: Re: should GNU install call matchpathcon by default? In-Reply-To: <47335759.7060600@tycho.nsa.gov> (Eamon Walsh's message of "Thu, 08 Nov 2007 13:37:13 -0500") References: <87k5ou9trs.fsf@rho.meyering.net> <47335759.7060600@tycho.nsa.gov> Date: Fri, 09 Nov 2007 15:42:03 +0100 Message-ID: <87hcjvh45g.fsf@rho.meyering.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov Eamon Walsh wrote: > Don't have a suggestion on the usage, but your overhead is coming from > the loading of the file contexts database on each invocation of > /bin/install. You could try to make the gettext installer more > judicious about batching things into a single /bin/install command > line. Or make install a shell builtin, so that it's not a separate > process. Thanks for the suggestions, but unfortunately, neither is feasible, since the Makefile install rules are generated by automake. > There is a new handle-based set of calls that replaces matchpathcon() > and friends. See include/selinux/label.h. If you're rewriting this > part of the code, I'd recommend switching over. It won't affect > performance too much I'm afraid, but maybe at some point there will be > a daemon backend of some sort so it just makes an IPC call instead of > loading the database in the library code. Good to know. I'll hold off for now, since there'd be no immediate benefit. -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.