fapolicyd/Bugfixes-for-dnf-plugin.patch
2022-11-09 18:40:28 +08:00

32 lines
1021 B
Diff

From 9e43b117bc7efed1e67a8fb4bb60d7e9bf9104b8 Mon Sep 17 00:00:00 2001
From: Steven Brzozowski <stevenbrz8@gmail.com>
Date: Fri, 7 Oct 2022 14:15:53 -0400
Subject: [PATCH] Bugfixes for dnf plugin
* Point to the correct fifo path
* Write a newline to get fapolicyd to pick up the write
---
dnf/fapolicyd-dnf-plugin.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dnf/fapolicyd-dnf-plugin.py b/dnf/fapolicyd-dnf-plugin.py
index 3de66518..650fe89d 100644
--- a/dnf/fapolicyd-dnf-plugin.py
+++ b/dnf/fapolicyd-dnf-plugin.py
@@ -8,7 +8,7 @@
class Fapolicyd(dnf.Plugin):
name = "fapolicyd"
- pipe = "/var/run/fapolicyd/fapolicyd.fifo"
+ pipe = "/run/fapolicyd/fapolicyd.fifo"
file = None
def __init__(self, base, cli):
@@ -32,5 +32,5 @@ def transaction(self):
sys.stderr.write("fapolicy-plugin does not have write permission: " + self.pipe + "\n")
return
- self.file.write("1")
+ self.file.write("1\n")
self.file.close()