[PATCH] semanage node -a bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Chad Sellers <csellers@xxxxxxxxxx>
---
 policycoreutils/semanage/seobject.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/policycoreutils/semanage/seobject.py b/policycoreutils/semanage/seobject.py
index 7c94da0..3c9b09f 100644
--- a/policycoreutils/semanage/seobject.py
+++ b/policycoreutils/semanage/seobject.py
@@ -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):
-- 
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 majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux