Blame SOURCES/fapolicyd-dnf-plugin.patch

6358ee
diff -up ./dnf/fapolicyd-dnf-plugin.py.plugin ./dnf/fapolicyd-dnf-plugin.py
6358ee
--- ./dnf/fapolicyd-dnf-plugin.py.plugin	2021-02-11 13:41:27.837534982 +0100
6358ee
+++ ./dnf/fapolicyd-dnf-plugin.py	2021-02-11 13:41:50.750225335 +0100
6358ee
@@ -7,30 +7,8 @@ import sys
6358ee
 
6358ee
 class Fapolicyd(dnf.Plugin):
6358ee
 
6358ee
-    name = "fapolicyd"
6358ee
-    pipe = "/var/run/fapolicyd/fapolicyd.fifo"
6358ee
-    file = None
6358ee
-
6358ee
     def __init__(self, base, cli):
6358ee
         pass
6358ee
 
6358ee
     def transaction(self):
6358ee
-
6358ee
-        if not os.path.exists(self.pipe):
6358ee
-            sys.stderr.write("Pipe does not exist (" + self.pipe + ")\n")
6358ee
-            sys.stderr.write("Perhaps fapolicy-plugin does not have enough permissions\n")
6358ee
-            sys.stderr.write("or fapolicyd is not running...\n")
6358ee
-            return
6358ee
-
6358ee
-        if not stat.S_ISFIFO(os.stat(self.pipe).st_mode):
6358ee
-            sys.stderr.write(self.pipe + ": is not a pipe!\n")
6358ee
-            return
6358ee
-
6358ee
-        try:
6358ee
-            self.file = open(self.pipe, "w")
6358ee
-        except PermissionError:
6358ee
-            sys.stderr.write("fapolicy-plugin does not have write permission: " + self.pipe + "\n")
6358ee
-            return
6358ee
-
6358ee
-        self.file.write("1")
6358ee
-        self.file.close()
6358ee
+        pass