Skip to contentSkip to conversation

sepolgen typo fix

PATCH Marshall Miller 3 participants 3 messages Mar 31, 2009 – May 18, 2009 SELinux security module

lore
Share & tools
lore
#0 lore raw

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

Marshall Miller

---

(quoted diff) +0 -0

b/sepolgen/src/sepolgen/access.py
index 6de919a..71121d7 100644

sepolgen/src/sepolgen/access.py +1 -1
@@ -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 [email protected] with the words "unsubscribe selinux" without quotes as the message.

Acked-by
#1 lore raw
Quoted 14 lines · Marshall Miller

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

Marshall Miller

---

sepolgen/src/sepolgen/access.py +0 -0
index 6de919a..71121d7 100644

sepolgen/src/sepolgen/access.py class RoleTypeSet: · line 319

Quoted 8 lines
sepolgen/src/sepolgen/access.py +1 -1
@@ -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.

--
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.

#2 lore raw
Quoted 21 lines · Chad Sellers
Quoted 19 lines · Marshall Miller

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

Marshall Miller

---

sepolgen/src/sepolgen/access.py +1 -1
index 6de919a..71121d7 100644
@@ -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())
 
Quoted 7 lines

sepolgen/src/sepolgen/access.py class RoleTypeSet: · line 319

Quoted 3 lines
sepolgen/src/sepolgen/access.py +0 -0
     def add(self, role, type):
         if self.role_types.has_key(role):

Looks fine.

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 [email protected] with the words "unsubscribe selinux" without quotes as the message.