From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4628F05B.7040309@tycho.nsa.gov> Date: Fri, 20 Apr 2007 12:54:51 -0400 From: Eamon Walsh MIME-Version: 1.0 To: "Christopher J. PeBenito" CC: SELinux Mail List , Stephen Smalley , Joshua Brindle Subject: Re: object class discovery userland References: <1177077717.15762.32.camel@sgc> In-Reply-To: <1177077717.15762.32.camel@sgc> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov Christopher J. PeBenito wrote: > 3. stop exporting class and perm indexes outside of the libraries. Then > the reverse lookup wouldn't be needed. This would involve some > overhauling of the libraries. I don't think this is a good idea because of the disruption it would cause with access vector processing (as passed to security_av_string() and avc_has_perm()). How do you or together strings? Why not just cache the numbers in the library, as Karl suggested, or create a parallel "class_num" or "class_index" directory with numeric nodes (perhaps renaming class to class_name). class_num/perms/1 class_num/name -- Eamon Walsh National Security Agency -- 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.