Skip to content

What is the purpose of classorder and sidorder? #456

Answered by jwcart2
danderson asked this question in Q&A
Discussion options

You must be logged in to vote

The ordering of some rules matters for the kernel policy. Historically the order that classes, sids, and categories appeared in the policy (policy.conf or Refpolicy) determined their ordering in the kernel binary policy. For categories, this ordering is used to resolve a category range. It used to be required for a policy to list classes and sids in the exact order the kernel did.

When CIL was created the ordering for classes was still required, but we did not want ordering based on the order the rules appeared (because we wanted to be able to break up policy into multiple files without caring about the order that the CIL compiler saw them), so we created ordering rules to allow the order…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@danderson
Comment options

Answer selected by danderson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants