Blame SOURCES/fapolicyd-dnf-plugin.patch

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