Blame SOURCES/fapolicyd-dnf-plugin.patch

c944e2
diff --color -ru a/dnf/fapolicyd-dnf-plugin.py b/dnf/fapolicyd-dnf-plugin.py
c944e2
--- a/dnf/fapolicyd-dnf-plugin.py	2021-11-12 20:21:54.000000000 +0100
c944e2
+++ b/dnf/fapolicyd-dnf-plugin.py	2021-11-18 16:29:03.919237116 +0100
c944e2
@@ -8,29 +8,9 @@
6358ee
 class Fapolicyd(dnf.Plugin):
6358ee
 
c944e2
     name = "fapolicyd"
6358ee
-    pipe = "/var/run/fapolicyd/fapolicyd.fifo"
6358ee
-    file = None
c944e2
 
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
c944e2
Only in b/dnf: fapolicyd-dnf-plugin.py.plugin