Blame SOURCES/fapolicyd-dnf-plugin.patch

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