Skip to contentSkip to conversation

Add back attributes flag to fix exception crash.

PATCH New Dan Walsh 2 participants 3 messages Oct 31, 2013 SELinux security module

lore
Share & tools
lore

Dan Walsh

author
#0 lore raw

PATCH 1/1 Add back attributes flag to fix exception crash.

sepolgen-ifgen is currently broken.

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

author
#1 lore raw

PATCH 1/10 Add back attributes flag to fix exception crash.

---
 sepolgen/src/sepolgen/interfaces.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sepolgen/src/sepolgen/interfaces.py +1 -1
index 3258684..88a6dc3 100644
@@ -276,7 +276,7 @@ class InterfaceVector:
         if attributes:
             for typeattribute in interface.typeattributes():
                 for attr in typeattribute.attributes:
-                    if not attributes.has_key(attr):
+                    if not attributes.attributes.has_key(attr):
                         # print "missing attribute " + attr
                         continue
                     attr_vec = attributes.attributes[attr]
Signature · 7 lines
1.8.3.1


--
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 9 lines · Dan Walsh
---
 sepolgen/src/sepolgen/interfaces.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sepolgen/src/sepolgen/interfaces.py +0 -0
index 3258684..88a6dc3 100644

sepolgen/src/sepolgen/interfaces.py class InterfaceVector: · line 282

Quoted 8 lines
sepolgen/src/sepolgen/interfaces.py +1 -1
@@ -276,7 +276,7 @@ class InterfaceVector:
         if attributes:
             for typeattribute in interface.typeattributes():
                 for attr in typeattribute.attributes:
-                    if not attributes.has_key(attr):
+                    if not attributes.attributes.has_key(attr):
                         # print "missing attribute " + attr
                         continue
                     attr_vec = attributes.attributes[attr]

I pushed this as sepolgen-1.2.1.

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