Skip to contentSkip to conversation

question about policydb_index_*

DISCUSSION Eric Paris 2 participants 2 messages Aug 2, 2010 – Aug 3, 2010 SELinux security module

lore
Share & tools
lore

Eric Paris

author
#0 lore raw

Why do we have a separate policydb_index_classes() and policydb_index_others() ? It looks to me like I should be able to merge them both into policydb_index_others(). Is there something I'm missing or a reason I shouldn't do that?

-Eric

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 4 lines · Eric Paris

Why do we have a separate policydb_index_classes() and policydb_index_others() ? It looks to me like I should be able to merge them both into policydb_index_others(). Is there something I'm missing or a reason I shouldn't do that?

You don't really want to allow classes to mingle with others - who knows what will result? ;)

No, there isn't any reason to not fold them together in the kernel. They are separate due to their origins in the policy compiler toolchain code, where they do get called at different times.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.