From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: object class discovery userland From: "Christopher J. PeBenito" To: Eamon Walsh Cc: SELinux Mail List , Stephen Smalley , Joshua Brindle In-Reply-To: <4628F20E.2000208@tycho.nsa.gov> References: <1177077717.15762.32.camel@sgc> <4628F05B.7040309@tycho.nsa.gov> <4628F20E.2000208@tycho.nsa.gov> Content-Type: text/plain Date: Fri, 20 Apr 2007 13:19:01 -0400 Message-Id: <1177089541.24870.17.camel@sgc> Mime-Version: 1.0 Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov On Fri, 2007-04-20 at 13:02 -0400, Eamon Walsh wrote: > Eamon Walsh wrote: > > 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/1/perms/1 > class_num/1/name I don't feel strongly about any of my suggestions, I mainly wanted to get the discussion going. The inspiration for symlink idea was from all the symlinking you see in sysfs, but the above structure certainly is an option too. -- Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- 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.