role dominance
While working on policyrep we've found that role dominance is pretty difficult to implement correctly, and apparently there is some ambiguity about how it works. The main problem we are running into now is that converting the role bitmaps of an old module (compatibility) back to a role dominance statement is very difficult.
Also it seems like noone has really used role dominance. During conversations about it here Chris PeBenito suggests that he wants something like it for refpolicy but a role attribute kind of system may be much simpler and easier to implement/understand.
Thoughts?
--
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.
Quoted 5 lines · Joshua Brindle
While working on policyrep we've found that role dominance is pretty difficult to implement correctly, and apparently there is some ambiguity about how it works. The main problem we are running into now is that converting the role bitmaps of an old module (compatibility) back to a role dominance statement is very difficult.
And likely unnecessary. It isn't required that a conversion yield the same source representation, but only that it yield the same end result when you ultimately generate a kernel binary policy. Or are you saying that you can't even do the latter?
Quoted 6 lines
Also it seems like noone has really used role dominance. During conversations about it here Chris PeBenito suggests that he wants something like it for refpolicy but a role attribute kind of system may be much simpler and easier to implement/understand.
Thoughts?
Any language feature that isn't actually being used should probably be deprecated.
Signature · 8 lines
Stephen Smalley National Security Agency -- 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.
Quoted 12 lines · Stephen Smalley
Quoted 5 lines · Joshua Brindle
While working on policyrep we've found that role dominance is pretty difficult to implement correctly, and apparently there is some ambiguity about how it works. The main problem we are running into now is that converting the role bitmaps of an old module (compatibility) back to a role dominance statement is very difficult.
And likely unnecessary. It isn't required that a conversion yield the same source representation, but only that it yield the same end result when you ultimately generate a kernel binary policy. Or are you saying that you can't even do the latter?
Quoted 7 lines
Quoted 4 lines
Also it seems like noone has really used role dominance. During conversations about it here Chris PeBenito suggests that he wants something like it for refpolicy but a role attribute kind of system may be much simpler and easier to implement/understand.
Any language feature that isn't actually being used should probably be deprecated.
Last time I tried to use it, the module compiler segfaulted I think. At a minimum, I believe it still had ordering issues, making it unusable. It might see more use if the upcoming experiments on using RBAC for role separation, rather than derived types, succeeds. And if it does, the role attribute might also be useful.
Signature · 10 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- 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.
Quoted 11 lines · Stephen Smalley
Quoted 2 lines · Joshua Brindle
While working on policyrep we've found that role dominance is pretty difficult to implement correctly, and apparently there is some ambiguity about how it works. The main problem we are running into now is that converting the role bitmaps of an old module (compatibility) back to a role dominance statement is very difficult.
And likely unnecessary. It isn't required that a conversion yield the same source representation, but only that it yield the same end result when you ultimately generate a kernel binary policy. Or are you saying that you can't even do the latter?
The latter is possible.
Quoted 8 lines
Quoted 4 lines
Also it seems like noone has really used role dominance. During conversations about it here Chris PeBenito suggests that he wants something like it for refpolicy but a role attribute kind of system may be much simpler and easier to implement/understand.
Thoughts?
Any language feature that isn't actually being used should probably be deprecated.
I vote for deprecation in the current compiler and no implementation in policyrep. If we want to add role attribute that would be fine too. Chris wants some way to group roles and I never really thought role dominance was the right way to do it.
--
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.
Quoted 17 lines · Joshua Brindle
Quoted 11 lines · Stephen Smalley
Quoted 2 lines · Joshua Brindle
While working on policyrep we've found that role dominance is pretty difficult to implement correctly, and apparently there is some ambiguity about how it works. The main problem we are running into now is that converting the role bitmaps of an old module (compatibility) back to a role dominance statement is very difficult.
And likely unnecessary. It isn't required that a conversion yield the same source representation, but only that it yield the same end result when you ultimately generate a kernel binary policy. Or are you saying that you can't even do the latter?
The latter is possible.
Quoted 2 lines
Quoted 2 lines
Also it seems like noone has really used role dominance. During conversations about it here Chris PeBenito suggests that he wants something like it for refpolicy but a role attribute kind of system may be much simpler and easier to implement/understand.
Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
Thoughts?
Any language feature that isn't actually being used should probably be deprecated.
I vote for deprecation in the current compiler and no implementation in policyrep. If we want to add role attribute that would be fine too. Chris wants some way to group roles and I never really thought role dominance was the right way to do it.
Patch below to deprecate role dominance. I think we should throw a warning in policyrep if we see anything in the dominates field of the role datum and continue without support. Chris suggests that he'd like role attributes so we can put that on the todo list to implement.
policy_parse.y (working copy) renamed from policy_parse.y (revision 2725) +2 -0
@@ -2563,6 +2563,8 @@ return (role_datum_t *) 1; /* any non-NULL value */ } + yywarn("Role dominance has been deprecated"); + role_id = queue_remove(id_queue); if (!is_id_in_scope(SYM_ROLES, role_id)) { yyerror2("role %s is not within scope", role_id);
--
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.