All of lore.kernel.org
 help / color / mirror / Atom feed
* sepolgen typo fix
@ 2009-03-31 19:42 Marshall Miller
  2009-04-22 21:24 ` Chad Sellers
  0 siblings, 1 reply; 3+ messages in thread
From: Marshall Miller @ 2009-03-31 19:42 UTC (permalink / raw)
  To: selinux

Commit b3b3f8186ed6d56c48c4e0f997d6e6b3fd90be37 attempted to fix a bug,
but didn't.  The following patch should do it.


Marshall Miller

---
diff --git a/sepolgen/src/sepolgen/access.py
b/sepolgen/src/sepolgen/access.py
index 6de919a..71121d7 100644
--- a/sepolgen/src/sepolgen/access.py
+++ b/sepolgen/src/sepolgen/access.py
@@ -313,7 +313,7 @@ class RoleTypeSet:
 
     def __len__(self):
         """Return the unique number of role allow statements."""
-        return len(self.role_type.keys())
+        return len(self.role_types.keys())
 
     def add(self, role, type):
         if self.role_types.has_key(role):


--
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 related	[flat|nested] 3+ messages in thread

* Re: sepolgen typo fix
  2009-03-31 19:42 sepolgen typo fix Marshall Miller
@ 2009-04-22 21:24 ` Chad Sellers
  2009-05-18 15:28   ` Joshua Brindle
  0 siblings, 1 reply; 3+ messages in thread
From: Chad Sellers @ 2009-04-22 21:24 UTC (permalink / raw)
  To: Marshall Miller, selinux

On 3/31/09 3:42 PM, "Marshall Miller" <mmiller@tresys.com> wrote:

> Commit b3b3f8186ed6d56c48c4e0f997d6e6b3fd90be37 attempted to fix a bug,
> but didn't.  The following patch should do it.
> 
> 
> Marshall Miller
> 
> ---
> diff --git a/sepolgen/src/sepolgen/access.py
> b/sepolgen/src/sepolgen/access.py
> index 6de919a..71121d7 100644
> --- a/sepolgen/src/sepolgen/access.py
> +++ b/sepolgen/src/sepolgen/access.py
> @@ -313,7 +313,7 @@ class RoleTypeSet:
>  
>      def __len__(self):
>          """Return the unique number of role allow statements."""
> -        return len(self.role_type.keys())
> +        return len(self.role_types.keys())
>  
>      def add(self, role, type):
>          if self.role_types.has_key(role):
> 
Looks fine.

Acked-by: Chad Sellers <csellers@tresys.com>



--
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] 3+ messages in thread

* Re: sepolgen typo fix
  2009-04-22 21:24 ` Chad Sellers
@ 2009-05-18 15:28   ` Joshua Brindle
  0 siblings, 0 replies; 3+ messages in thread
From: Joshua Brindle @ 2009-05-18 15:28 UTC (permalink / raw)
  To: Chad Sellers; +Cc: Marshall Miller, selinux

Chad Sellers wrote:
> On 3/31/09 3:42 PM, "Marshall Miller" <mmiller@tresys.com> wrote:
> 
>> Commit b3b3f8186ed6d56c48c4e0f997d6e6b3fd90be37 attempted to fix a bug,
>> but didn't.  The following patch should do it.
>>
>>
>> Marshall Miller
>>
>> ---
>> diff --git a/sepolgen/src/sepolgen/access.py
>> b/sepolgen/src/sepolgen/access.py
>> index 6de919a..71121d7 100644
>> --- a/sepolgen/src/sepolgen/access.py
>> +++ b/sepolgen/src/sepolgen/access.py
>> @@ -313,7 +313,7 @@ class RoleTypeSet:
>>  
>>      def __len__(self):
>>          """Return the unique number of role allow statements."""
>> -        return len(self.role_type.keys())
>> +        return len(self.role_types.keys())
>>  
>>      def add(self, role, type):
>>          if self.role_types.has_key(role):
>>
> Looks fine.
> 
> Acked-by: Chad Sellers <csellers@tresys.com>
> 

Merged in sepolgen-1.0.17

--
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] 3+ messages in thread

end of thread, other threads:[~2009-05-18 15:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-31 19:42 sepolgen typo fix Marshall Miller
2009-04-22 21:24 ` Chad Sellers
2009-05-18 15:28   ` Joshua Brindle

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.