All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: chcat fixes
       [not found] <C639DAB6.A73D6%csellers@tresys.com>
@ 2009-05-21 12:13 ` Daniel J Walsh
  2009-06-19 17:30   ` Joshua Brindle
  2009-06-23 17:06   ` Joshua Brindle
  0 siblings, 2 replies; 6+ messages in thread
From: Daniel J Walsh @ 2009-05-21 12:13 UTC (permalink / raw)
  To: Chad Sellers, SE Linux

[-- Attachment #1: Type: text/plain, Size: 251 bytes --]

On 05/20/2009 04:05 PM, Chad Sellers wrote:
> On 5/20/09 3:00 PM, "Daniel J Walsh"<dwalsh@redhat.com>  wrote:
>
>> Expansion of categores is still broken.  Here is a patch to fix.
>>
> This message appears to be missing a patch.
>
> Thanks,
> Chad
>


[-- Attachment #2: policycoreutils-chcat.patch --]
[-- Type: text/plain, Size: 939 bytes --]

--- nsapolicycoreutils/scripts/chcat	2009-01-13 08:45:35.000000000 -0500
+++ policycoreutils-2.0.62/scripts/chcat	2009-05-04 13:40:26.000000000 -0400
@@ -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:

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: chcat fixes
  2009-05-21 12:13 ` chcat fixes Daniel J Walsh
@ 2009-06-19 17:30   ` Joshua Brindle
  2009-06-22 12:29     ` Stephen Smalley
  2009-06-23 17:06   ` Joshua Brindle
  1 sibling, 1 reply; 6+ messages in thread
From: Joshua Brindle @ 2009-06-19 17:30 UTC (permalink / raw)
  To: Daniel J Walsh; +Cc: Chad Sellers, SE Linux, Stephen Smalley

Daniel J Walsh wrote:
> On 05/20/2009 04:05 PM, Chad Sellers wrote:
>> On 5/20/09 3:00 PM, "Daniel J Walsh"<dwalsh@redhat.com> wrote:
>>
>>> 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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: chcat fixes
  2009-06-19 17:30   ` Joshua Brindle
@ 2009-06-22 12:29     ` Stephen Smalley
  0 siblings, 0 replies; 6+ messages in thread
From: Stephen Smalley @ 2009-06-22 12:29 UTC (permalink / raw)
  To: Joshua Brindle
  Cc: Daniel J Walsh, Chad Sellers, SE Linux, Eric Paris, James Morris

On Fri, 2009-06-19 at 13:30 -0400, Joshua Brindle wrote:
> Daniel J Walsh wrote:
> > On 05/20/2009 04:05 PM, Chad Sellers wrote:
> >> On 5/20/09 3:00 PM, "Daniel J Walsh"<dwalsh@redhat.com> wrote:
> >>
> >>> 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.

-- 
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: chcat fixes
  2009-05-21 12:13 ` chcat fixes Daniel J Walsh
  2009-06-19 17:30   ` Joshua Brindle
@ 2009-06-23 17:06   ` Joshua Brindle
  1 sibling, 0 replies; 6+ messages in thread
From: Joshua Brindle @ 2009-06-23 17:06 UTC (permalink / raw)
  To: Daniel J Walsh; +Cc: Chad Sellers, SE Linux

Daniel J Walsh wrote:
> On 05/20/2009 04:05 PM, Chad Sellers wrote:
>> On 5/20/09 3:00 PM, "Daniel J Walsh"<dwalsh@redhat.com> wrote:
>>
>>> 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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: chcat fixes
  2009-05-20 19:00 Daniel J Walsh
@ 2009-05-21 10:50 ` Christopher J. PeBenito
  0 siblings, 0 replies; 6+ messages in thread
From: Christopher J. PeBenito @ 2009-05-21 10:50 UTC (permalink / raw)
  To: Daniel J Walsh; +Cc: SE Linux

On Wed, 2009-05-20 at 15:00 -0400, Daniel J Walsh wrote:
> Expansion of categores is still broken.  Here is a patch to fix.

Missing attachment.

-- 
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* chcat fixes
@ 2009-05-20 19:00 Daniel J Walsh
  2009-05-21 10:50 ` Christopher J. PeBenito
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel J Walsh @ 2009-05-20 19:00 UTC (permalink / raw)
  To: SE Linux

Expansion of categores is still broken.  Here is a patch to fix.

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-06-23 17:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <C639DAB6.A73D6%csellers@tresys.com>
2009-05-21 12:13 ` chcat fixes Daniel J Walsh
2009-06-19 17:30   ` Joshua Brindle
2009-06-22 12:29     ` Stephen Smalley
2009-06-23 17:06   ` Joshua Brindle
2009-05-20 19:00 Daniel J Walsh
2009-05-21 10:50 ` Christopher J. PeBenito

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.