Assignment 4, due Feb 23
Part of
the homework for 22C:169, Spring 2006
|
Always, on every assignment, please write your name legibly as it appears on your University ID and on the class list! All assignments will be due at the start of class on the day indicated, and unless there is what insurance companies call "an act of God" - something outside your control; the only exceptions to this rule will be by advance arrangement.
{ const int a = 5; { int b; -- context X -- } { int c; -- context Y -- } -- context Z -- }a) Construct an access matrix describing the access rights to the variables a, b and c from the contexts X, Y and Z.b) Construct the access control lists for the variable a, b and c.
c) Construct the C-lists for the contexts X, Y and Z. timesharing system to avoid being taken in by such an attack.
a) Use some programming language to solve this. It is easier in languages such as Java and Ada that have some kind of modular or object-oriented abstraction mechanism, but it is just possible to solve it in Pascal.
b) Consider what happens to the access rights when X calls Z or when Z calls Y. What does this tell you about the correctness of the standard assumption that each process executes in a fixed protection domain.
Turn in a listing of your code, with sufficient documentation that someone rewriting your program could figure out the file format.