Docsity

Mother's Question and Compartment Security: Logic Puzzle and Access Control, Assignments of Computer Science

Toggle sidebar
bg1
Answer 1) In general, if there are (k>1) children with mud on their forehead, the first k-1
times she asks the question, they will all say No, but then the kth time the children with
muddy foreheads will all answer Yes. Suppose that there is only one child with mud on
his forehead. He can see that nobody else has mud on his forehead. Also his mom
announced that there is at least one child with mud on his forehead. He can combine his
observation and facts to immediately recognize that he alone is dirty. As soon as the mom
asks the question (first time), he will say yes. Now, if there are two children with mud on
their forehead. The two muddy children can only see one child with mud on his forehead
as they can’t see their own. So, the first time Mom asks the question, both will remain
quite. After they see each other being quite, they will both realize that there is one more
child with mud on his forehead. Both can see each other but not their own forehead will
immediately realize that they are the one.
The mother’s announcement is the common knowledge in this problem as everybody
knows a fact and everybody knows that everybody knows that fact and so on.
Answer 2) Compartments are used to restrict access at a particular level or levels. But
when something is UNCLASSIFIED, access to it is unrestricted. Hence having
compartments at the UNCLASSIFIED level serves no purpose, and is meaningless.
Answer 3) Let A’s compartment be (LA,CA) and B’s be (LB,CB). The simple security
condition says that A can read B if and only if LA ≥ LB and CB
CA. The *-property
says that A can write B if and only if LB ≥ LA and CA
CB. Remember that
TOPSECRET ≥ SECRET ≥ CONFIDENTIAL ≥ UNCLASSIFIED.
a. LPaul= TOPSECRET ≥ SECRET =Ldoc, so Paul cannot write the document. Paul
cannot read the document either, because Cdoc= { B, C }
{ A, C } = CPaul.
b. LAnna = CONFIDENTIAL ≥ CONFIDENTIAL =Ldoc, but Cdoc= { B }
{ C }
=CAnna so Anna cannot read the document, and CAnna= { C }
{ B } =Cdoc, so Anna
cannot write the document.
c. LJesse= SECRET ≥ CONFIDENTIAL =Ldoc, and Cdoc= { C }
{ C } =CJesse, so
Jessecan read the document. As LJesse > Ldoc, however, Jesse cannot write the document.
d. As LSammi= TOPSECRET ≥ CONFIDENTIAL =Ldoc and Cdoc= { A}
{ A, C }
=CSammi, Sammi can read the document. But the first inequality means Sammi cannot
write the document.
e. As CRobin=Φ
{ B } =Cdoc and Ldoc= CONFIDENTIAL≥ UNCLASSIFIED =LRobin,
Robin can write the document. However, because Ldoc ≥LRobin, she cannot read the
document.
Answer 4) Let (SL, SC) be the security clearance and category set of the security level
L. The Bell-LaPadula model allows a subject in L to read an entity in L´ if, and only if,
pf2

Partial preview of the text

Download Mother's Question and Compartment Security: Logic Puzzle and Access Control and more Assignments Computer Science in PDF only on Docsity!

Answer 1) In general, if there are (k>1) children with mud on their forehead, the first k- times she asks the question, they will all say No, but then the kth time the children with muddy foreheads will all answer Yes. Suppose that there is only one child with mud on his forehead. He can see that nobody else has mud on his forehead. Also his mom announced that there is at least one child with mud on his forehead. He can combine his observation and facts to immediately recognize that he alone is dirty. As soon as the mom asks the question (first time), he will say yes. Now, if there are two children with mud on their forehead. The two muddy children can only see one child with mud on his forehead as they can’t see their own. So, the first time Mom asks the question, both will remain quite. After they see each other being quite, they will both realize that there is one more child with mud on his forehead. Both can see each other but not their own forehead will immediately realize that they are the one. The mother’s announcement is the common knowledge in this problem as everybody knows a fact and everybody knows that everybody knows that fact and so on. Answer 2) Compartments are used to restrict access at a particular level or levels. But when something is UNCLASSIFIED, access to it is unrestricted. Hence having compartments at the UNCLASSIFIED level serves no purpose, and is meaningless. Answer 3) Let A ’s compartment be ( LA , CA ) and B ’s be ( LB , CB ). The simple security

condition says that A can read B if and only if LA ≥ LB and CB ^ CA. The *-property

says that A can write B if and only if LB ≥ LA and CA ^ CB. Remember that

TOPSECRET ≥ SECRET ≥ CONFIDENTIAL ≥ UNCLASSIFIED.

a. L Paul= TOPSECRET ≥ SECRET = L doc, so Paul cannot write the document. Paul

cannot read the document either, because C doc= { B, C } { A, C } = C Paul.

b. L Anna = CONFIDENTIAL ≥ CONFIDENTIAL = L doc, but C doc= { B } { C }

= C Anna so Anna cannot read the document, and C Anna= { C } { B } = C doc, so Anna

cannot write the document.

c. L Jesse= SECRET ≥ CONFIDENTIAL = L doc, and C doc= { C } ^ { C } = C Jesse, so

Jessecan read the document. As L Jesse > L doc, however, Jesse cannot write the document.

d. As L Sammi= TOPSECRET ≥ CONFIDENTIAL = L doc and C doc= { A} { A, C }

= C Sammi, Sammi can read the document. But the first inequality means Sammi cannot write the document.

e. As C Robin=Φ { B } = C doc and L doc= CONFIDENTIAL ≥ UNCLASSIFIED = L Robin,

Robin can write the document. However, because L doc ≥L Robin, she cannot read the document. Answer 4) Let ( SL , SC ) be the security clearance and category set of the security level L. The Bell-LaPadula model allows a subject in L to read an entity in L´ if, and only if,

L dominates L´. By definition 5–1, this means SL ≤  SL´ and SC´ ^ SC. As the security and

integrity levels are the same, ( SL , SC ) also defines the integrity clearance and category set of the integrity level L. The Biba model allows a subject in L to read an entity in L´

if, and only if, L´ dominates L. Again, this means SL´≤  SL and SC   SC´. Putting the two

relations together, a subject in L can read an entity in L´ if, and only if, SL ≤SL´ and SL´≤

SL , and SC´  ^ SC and SC ^ SC´. By asymmetry, this means a subject in L can read an

entity in L´ if, and only if, SL = SL´ and SC´ = SC , or L = L´. Hence the subject and the entity being read must be at the same security (integrity) level. A similar argument shows that, if a subject can write to an entity, the subject and entity being written must be at the same security (integrity) level. Answer 5) a. “Mary” is a poor password because it is a proper name (violating rule 2). b. “go2work” can be argued either way. It is a concatenation of dictionary works, violating rule 18. However, the “to” being changed to “2” adds an element of complexity that may thwart attackers. c. “cat&dog” also can be argued either way. It is a concatenation of dictionary works, violating rule 18. However, the “and” being changed to “&” adds an element of complexity that may thwart attackers. d. “3.1515pi” is a good password. It is a mangling of the first four digits of the constant Π(the correct digits are 3.1416) and has letters, numbers, and symbols.) and has letters, numbers, and symbols. Answer 6) Read 18.1 for answers. Answer 7) Read 10.4.2 3rd^ paragraph.