Skip to content

Commit 0a470c5

Browse files
committed
vmupdate: Fix meminfo-writer SELinux label for both bin & sbin
Since `meminfo-writer` is moved from `/usr/sbin` to `/usr/bin`, the patch should look for both scenarios and apply the patch accordingly
1 parent 81a9191 commit 0a470c5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

vmupdate/agent/source/plugins/fix_meminfo_writer_label.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ def fix_meminfo_writer_label(os_data, log, **kwargs):
1212

1313
if os_data["id"] == "fedora":
1414
if os.path.exists("/usr/sbin/selinuxenabled"):
15-
meminfo_path = "/usr/sbin/meminfo-writer"
15+
if os.path.exists("/usr/bin/meminfo-writer"):
16+
meminfo_path = "/usr/bin/meminfo-writer"
17+
else:
18+
meminfo_path = "/usr/sbin/meminfo-writer"
1619
expected_label = "qubes_meminfo_writer_exec_t"
1720

1821
label_changed = False

0 commit comments

Comments
 (0)