Definition
A security policy lattice is the set of possible policies ordered by strictness: policy is at least as strict as policy when every request that allows, also allows. Any two policies then have a meet, the policy that allows exactly the requests both allow, and a join, the policy that allows the requests either one allows. A tighten-only update rule accepts a new policy only if it is at least as strict as the current one, so an update can remove permissions but never add one.
Where it fits
Main entry: Set inclusion and policy order (§15.40).
The Set inclusion entry defines this order on what policies mean; a request is one combination of who asks, which operation and which object. Policies are stored as fields and numbers that do not all point the same way, so a tighten-only rule is only as sound as the step that decodes each field into the requests it allows, before any comparison or combination.
Lower and upper bounds combine in opposite directions. The rule “accept a key only if its size is at least bytes” allows more as falls; the rule “accept a message only if its length is at most bytes” allows more as rises. The meet of two lower bounds is the larger bound, and the meet of two upper bounds is the smaller. With key sizes from 7 to 16 bytes, policy requires at least 10 bytes and allows the sizes ; policy requires at least 12 and allows . Their meet is , the bound . The numeric minimum, , returns , which allows sizes 10 and 11 that refuses.
A sentinel breaks numeric order. A sentinel is a reserved value that stands for a state instead of an amount; the Threshold and sentinel semantics §15.37 entry treats it in full. In a field “failed logins allowed before lockout”, let 0 mean “never lock out”. For and , the numeric minimum is 0, the least strict setting. Decoded, allows unlimited attempts, written , and the meet is .
Sets of operations are not numbers. allows and allows ; their meet allows . Replacing by is not a tightening, although both allow two operations: it removes write and adds erase. Let be the set of requests a policy allows, the current policy and the new one. A tighten-only rule tests , where means “is a subset of”. The meet of and always passes this test.
Exceptions and identifiers need care. An exception list grants permissions, so it runs the other way: a policy that exempts more devices from a check is less strict, and the meet of two exception lists is their intersection, not their union. When a rule depends on an identifier that an attacker can forge, judge the rule by what the attacker obtains with any identifier the attacker can claim. A rule that removes a permission from one identifier then protects nothing against an attacker who presents another, and a rule that grants an override to one identifier grants it to everyone who can claim that identifier.
Fields can interact. Combining field by field is correct only when a policy allows a request exactly when every field allows it independently, as when each field limits a different attribute of the request. A rule with an “or”, such as “a key of at least 16 bytes, or of at least 10 bytes on an authenticated link”, makes one field’s meaning depend on another, so compute the meet on the decoded sets of allowed requests. When a decision depends on history, compare traces, the sequences of requests over time.
Limits and common mistakes
Stricter is not better in every respect. A meet can refuse requests that recovery or normal service needs, so availability §1.10 can fall. A tighten-only rule constrains permissions; it does not judge whether an update is good to deploy.
The checker must decode fields exactly as the enforcing code does. If the two decode a field differently, an update can pass the check as a tightening while it loosens what is actually enforced.
Removing a permission can make a later state unreachable, including a state that recovery depends on. Judge such an update on the states the system can still reach, not on one list of requests.
Questions answered
Can restrictive-looking numeric thresholds always be intersected?
No. Intersecting two policies means keeping only the requests that both allow, and stored numeric thresholds give that result only after each field has been decoded into the set of values it allows. Three cases break a plain numeric rule such as “take the smaller number”. A lower bound, such as a minimum key size, tightens as the number rises, so the intersection of two lower bounds is the larger one: minimums of 10 and 12 bytes intersect to 12, not 10. A sentinel, a reserved value such as 0 meaning “no limit”, is the least strict setting although it is the smallest number, so the minimum of 5 and that 0 selects “no limit”. And fields that interact, exception lists that grant permissions, and identifiers an attacker can forge make field-by-field arithmetic wrong.
The safe procedure is to decode each field into the requests it allows, intersect those sets, encode the result, and check that the result still allows what recovery needs. A tighten-only update rule accepts a new policy only when its allowed set is a subset of the current one.
Related entries: Threshold and sentinel semantics (§15.37), Policy versus mechanism (§1.19), Availability (§1.10), Partial order, lattice, join, and meet (§19.2.6), Fail closed (§1.13).