Modeladvanced
Take-Grant protection model
Also called take-grant model.
A graph model of protection in which subjects take and grant rights along edges, built so that the safety question is decidable in linear time.
The Take-Grant protection model is a model of protection in which the state is a directed graph and four fixed rules change it. Vertices are subjects and objects, and an edge from to carries the rights that has over . Two special rights, take () and grant (), move other rights along the edges. Jones, Lipton and Snyder gave the model in 1976 as an answer to the HRU result that safety is undecidable for general protection systems. In Take-Grant the rules are fixed, and the question "can come to hold right over ?" has an exact graph characterization and a linear time algorithm.
The machine
Protection graph. A state is a finite directed graph with a label on each edge, where is a finite set of rights that contains and . The vertices are split into subjects (active) and objects (passive). The graph is the access control matrix written as a graph: , and a missing edge is an empty cell.
Rules. Let , , be distinct vertices and let be a subject. Write if one rule takes to .
| rule | precondition | effect |
|---|---|---|
| takes ( to ) from | , | add to |
| grants ( to ) to | , | add to |
| creates ( to new vertex) | is a new subject or object | add and the edge with label |
| removes ( to) | exists | remove from |
These four are the de jure rules: they change rights. Take says that a subject who may take from gets any right that holds. Grant says that a subject who may grant to can give any right it holds. In HRU terms each rule is a command with at most two tests and one or two primitive operations, so Take-Grant is one fixed protection system.
The question. For a right and vertices , of , define
Cost. In the word RAM model, store the graph as adjacency lists with vertices and labeled edges. One rule costs expected time with a hash map of edges. The decision procedures below run in time.
What it counts
The model counts which rights can reach which vertices. The adversary in is a set of subjects that all cooperate: every subject applies any rule that helps the transfer, and no one refuses. So is false only if no coalition of all the subjects can move the right. A false answer is a proof of safety against any such coalition. A true answer only says that a transfer is possible if the subjects on the path agree.
Paths and words. A tg-path is a path in the graph, with edges taken in either direction, on which each edge has or in its label. Its word lists the edges in order: for a edge in the direction of travel, for one against it, and the same for . Two vertices are tg-connected if a tg-path joins them.
Islands, bridges and spans.
- An island is a maximal tg-connected set of subjects, using only edges between subjects. Inside an island any right held by one subject can reach any other.
- A bridge is a tg-path between two subjects whose word is in , , or . Rights cross a bridge from one island to the next.
- A subject initially spans to if a tg-path from to has a word in or is empty: can take a grant right over and then give what it holds.
- A subject terminally spans to if a tg-path from to has a word in or is empty: can take what holds.
Example. Take subjects , , , and an object , with the edges , and . Then takes ( to ) from , and grants ( to ) to , so and are true. The subject has no edges, so no rule involves it, and is false.
Relation to other models
- HRU. The HRU model lets the designer choose the commands, and that freedom is what makes safety undecidable. Take-Grant fixes the commands. It shows that a protection system can create vertices without bound and still have a decidable safety question.
- Capabilities. A edge works like a capability to read another subject's capability list, and a edge like a capability to write into it. The model is a common way to reason about capability systems.
- Graph search. The characterizations reduce to connected components and to reachability in a graph whose edges are the bridges, both found by breadth-first search.
- Information flow. The de jure rules move rights, not data. Rights are not the same as information, which is the subject of the confinement problem.
Known results in the model
Each item is a theorem.
- Subject-only graphs (Jones, Lipton and Snyder 1976). If every vertex of is a subject, holds if and only if already, or some vertex has and and are tg-connected.
- General graphs (Lipton and Snyder 1977). holds if and only if already, or all four of these hold: some vertex has ; some subject is equal to or initially spans to ; some subject is equal to or terminally spans to ; and there are islands with , and a bridge from to for each .
- Linear time (Lipton and Snyder 1977). The condition can be checked in time: find the islands with one pass, find the bridges by a search whose state is a vertex and a position in the word patterns, and test reachability between islands. The proofs use the create rule, but the conditions mention only the vertices and edges of , so the unbounded state space does not enter the test.
- Removal does not help. The remove rule only deletes rights and no rule tests that a right is absent, so a shortest sequence that shares a right never uses remove.
- Theft and conspiracy (Snyder 1981, as presented in Bishop, Chapter 3). The predicate asks whether can get over when the subjects that already hold over never grant it. This changes the adversary: the owners are honest and the others cooperate. It also has a graph characterization. Bishop also treats conspiracy: the smallest number of subjects that must act together for a transfer.
- De facto rules (Bishop, Chapter 3). The rules post, pass, spy and find model the flow of information along read and write edges, and the predicate asks whether information can flow from to . It also has a path characterization.
References
- Anita K. Jones, Richard J. Lipton and Lawrence Snyder, A linear time algorithm for deciding security, 17th Annual Symposium on Foundations of Computer Science (FOCS), 1976, pages 33 to 41, the take, grant, create and remove rules and the linear time decision procedure
- Richard J. Lipton and Lawrence Snyder, A linear time algorithm for deciding subject security, Journal of the ACM 24(3), 1977, pages 455 to 464, the characterization of can-share and the linear time algorithm
- Matt Bishop, Computer Security: Art and Science, second edition, Addison-Wesley, 2018, Chapter 3, Foundational Results (the Take-Grant protection model: sharing of rights, islands, bridges and spans, theft and conspiracy, interpretation of the model)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag W0AS60 Edit this page History Report an error Markdown