RE: [v0 PATCH 0/2] Review request for reorganizing the role transition rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Eric,

Yep, you are right, technically these two patches are right, but for the time being considering that there are only 5 role transition rules, single list would be a better data structure to organize them than a hash table.

There is no outstanding underlying problem that these two patches are trying to fix, just that when adding the class support to the role transition rules,
Stephen mentioned that we may want to re-organize the role transition rules in hash table as what has been done for the range transition, which has 30+ such rules now.

So re-organize role transition rules in hash table does has added complexity now, but I guess they would be more desirable in the future when full RBAC is implemented.

Many thanks for your comments !

Best regards,
Harry

> Date: Tue, 24 May 2011 08:50:14 -0400
> From: eparis@xxxxxxxxxx
> To: rongqing.li@xxxxxxxxxxxxx
> CC: sds@xxxxxxxxxxxxx; jmorris@xxxxxxxxx; epa! ris@xxxxxxxxxxxxxx; selinux@xxxxxxxxxxxxx
> Subject: Re: [v0 PATCH 0/2] Review request for reorganizing the role transition rule
>
> On 05/24/2011 05:46 AM, rongqing.li@xxxxxxxxxxxxx wrote:
> > Comments:
> > ---------
> > Organize the roletr in hash table rather than single list.
>
> Why? I'm not opposed to the change, but it is added complexity. How
> many such rules exist? How often are they searched? What was that
> underlying problem for the patch?
>
> -Eric
>
> --
> This message was distributed to subscribers of the selinux mailing list.
> If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
> the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux