Skip to contentSkip to conversation

semanage node -a bug

PATCH New Chad Sellers 1 participant 1 message Nov 19, 2009 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 semanage node -a bug

This patch fixes a bug that causes semanage node -a to not work (failing with a python traceback). You can test the bug with any semanage node -a command, such as:

semanage node -a -t node_t -p ipv4 -M 255.255.255.0 192.168.1.0

---
 policycoreutils/semanage/seobject.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
policycoreutils/semanage/seobject.py +1 -1
index 7c94da0..3c9b09f 100644
@@ -1038,7 +1038,7 @@ class nodeRecords(semanageRecords):
 
        def add(self, addr, mask, proto, serange, ctype):
                 self.begin()
-                self.__add(self, addr, mask, proto, serange, ctype)
+                self.__add(addr, mask, proto, serange, ctype)
                 self.commit()
 
        def __modify(self, addr, mask, proto, serange, setype):
Signature · 7 lines
1.6.2.5


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