Blame SOURCES/fapolicyd-dnf-plugin.patch

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