Blob Blame History Raw
diff --color -ru a/dnf/fapolicyd-dnf-plugin.py b/dnf/fapolicyd-dnf-plugin.py
--- a/dnf/fapolicyd-dnf-plugin.py	2021-11-12 20:21:54.000000000 +0100
+++ b/dnf/fapolicyd-dnf-plugin.py	2021-11-18 16:29:03.919237116 +0100
@@ -8,29 +8,9 @@
 class Fapolicyd(dnf.Plugin):
 
     name = "fapolicyd"
-    pipe = "/var/run/fapolicyd/fapolicyd.fifo"
-    file = None
 
     def __init__(self, base, cli):
         pass
 
     def transaction(self):
-
-        if not os.path.exists(self.pipe):
-            sys.stderr.write("Pipe does not exist (" + self.pipe + ")\n")
-            sys.stderr.write("Perhaps fapolicy-plugin does not have enough permissions\n")
-            sys.stderr.write("or fapolicyd is not running...\n")
-            return
-
-        if not stat.S_ISFIFO(os.stat(self.pipe).st_mode):
-            sys.stderr.write(self.pipe + ": is not a pipe!\n")
-            return
-
-        try:
-            self.file = open(self.pipe, "w")
-        except PermissionError:
-            sys.stderr.write("fapolicy-plugin does not have write permission: " + self.pipe + "\n")
-            return
-
-        self.file.write("1")
-        self.file.close()
+        pass
Only in b/dnf: fapolicyd-dnf-plugin.py.plugin