chcat fixes
A message that is not in the archive (sent off-list or not yet received): C639DAB6.A73D6%[email protected]
Quoted 9 lines · Chad Sellers
Quoted 2 lines · Daniel J Walsh
Expansion of categores is still broken. Here is a patch to fix.
This message appears to be missing a patch.
Thanks,
Chad
scripts/chcat +8 -8
@@ -281,14 +281,14 @@ def expandCats(cats): newcats = [] for c in cats: - if c.find(".") != -1: - c = c.split(".") - for i in range(int(c[0][1:]), int(c[1][1:]) + 1): - x = ("c%d" % i) - if x not in newcats: - newcats.append("c%d" % i) - else: - for i in c.split(","): + for i in c.split(","): + if i.find(".") != -1: + j = i.split(".") + for k in range(int(j[0][1:]), int(j[1][1:]) + 1): + x = ("c%d" % k) + if x not in newcats: + newcats.append(x) + else: if i not in newcats: newcats.append(i) if len(newcats) > 25:
Quoted 5 lines · Daniel J Walsh
Quoted 4 lines · Chad Sellers
Quoted 2 lines · Daniel J Walsh
Expansion of categores is still broken. Here is a patch to fix.
Its a shame that we are still hard coding the format for categories into tools, we might as well have hardcoded the format into the security server.
Stephen - any chance we could get selinuxfs interfaces that export level/category data so that tools can use that instead of hardcoding this stuff?
--
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 4 lines · Joshua Brindle
Quoted 3 lines · Daniel J Walsh
Quoted 2 lines · Chad Sellers
On 5/20/09 3:00 PM, "Daniel J Walsh"<[email protected]> wrote:
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Expansion of categores is still broken. Here is a patch to fix.
Its a shame that we are still hard coding the format for categories into tools, we might as well have hardcoded the format into the security server.
Stephen - any chance we could get selinuxfs interfaces that export level/category data so that tools can use that instead of hardcoding this stuff?
That would be fine with me. Not only level/category data, but also other policy information (e.g. user data) to allow obsoleting of /selinux/users.
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 10 lines · Daniel J Walsh
Quoted 9 lines · Chad Sellers
Quoted 2 lines · Daniel J Walsh
Expansion of categores is still broken. Here is a patch to fix.
This message appears to be missing a patch.
Thanks,
Chad
Merged in policycoreutils 2.0.64
--
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.