2010-06-28 05:17:25

by Russell Coker

[permalink] [raw]
Subject: [refpolicy] number of categories

It seems that everyone is using 1024 categories (Fedora/RHEL counts as "almost
everyone" and Debian counts as "almost everyone else").

I think it's the best thing to have the upstream policy defaults match what is
being most commonly used when there is no good reason to do otherwise, and as
the number of categories is entirely arbitrary there can't be a good reason to
do otherwise.

Please apply a patch like the attached one. If nothing else it will save
about 50 lines from each distribution's patch.

--
russell at coker.com.au
http://etbe.coker.com.au/ My Main Blog
http://doc.coker.com.au/ My Documents Blog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cats.diff
Type: text/x-patch
Size: 1280 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20100628/4b60e6fc/attachment.bin


2010-06-28 13:08:59

by cpebenito

[permalink] [raw]
Subject: [refpolicy] number of categories

On Mon, 2010-06-28 at 15:17 +1000, Russell Coker wrote:
> It seems that everyone is using 1024 categories (Fedora/RHEL counts as "almost
> everyone" and Debian counts as "almost everyone else").
>
> I think it's the best thing to have the upstream policy defaults match what is
> being most commonly used when there is no good reason to do otherwise, and as
> the number of categories is entirely arbitrary there can't be a good reason to
> do otherwise.
>
> Please apply a patch like the attached one. If nothing else it will save
> about 50 lines from each distribution's patch.

Dropped unrelated hunks. Otherwise merged.

--
Chris PeBenito
Tresys Technology, LLC
http://www.tresys.com | oss.tresys.com