Transitivity in role dominance relation
Quoted 8 lines
I've been testing role dominance relation. expecially, the transitivity of role dominance relation.
prof_r> (osg_r,dbg_r) >stud_ras;
Quoted 8 lines
dominance { role
prof_r{ roleosg_r; roledbg_r; } } dominance { roleosg_r{ rolestud_r; } } dominance { roledbg_r{ rolestud_r; } }# disabled direct relation #dominance { role prof_r { role stud_r; } }In the above relation, I guessed that the
prof_rrole can not inherit the types ofstud_ras seeing below;
Yes, this is an artifact of the implementation in the policy compiler, and doesn't seem desirable. If you were to specify the above as a single dominance statement, e.g.
dominance { role prof_r { role osg_r { role stud_r; } role dbg_r { role stud_r; } } }
, then prof_r would inherit the types of stud_r and every user authorized for prof_r would also be authorized for stud_r. Of greater concern is the fact that the order of the dominance statements affects the end result; notice what happens if you simply move the dominance statements for osg_r and dbg_r before the statement for prof_r. The compiler should be changed to eliminate this ordering dependency.
As an aside, note that the example policy does not use role dominance, and some have suggested that it should be eliminated entirely. Keep in mind that the RBAC model does not provide any additional security mechanism; it is merely an abstraction layer to conveniently group domains into sets for assignment to users. The real security of the system is based on the TE model.
Quoted 2 lines
And I also could not get the context of
stud_rusing the newrole command after getting the context ofosg_rordbg_r.
You need to allow the corresponding role transitions and domain transitions in the policy. role dominance doesn't implicitly grant such accesses.
--
Stephen Smalley, NSA
[email protected]
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.