Blame SOURCES/fapolicyd-dnf-plugin.patch

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