Don't store debug messages from rtkit-daemon

Resolves: RHEL-54179
This commit is contained in:
Michal Sekletar 2024-08-13 21:35:31 +02:00 committed by Michal Sekletár
parent 564cf364bf
commit 74613b1da3
3 changed files with 25 additions and 23 deletions

View File

@ -0,0 +1,24 @@
From 0ced1f81d7e14e042f0c300011659a3eae0df3c3 Mon Sep 17 00:00:00 2001
From: Michal Sekletar <msekleta@redhat.com>
Date: Tue, 13 Aug 2024 21:09:57 +0200
Subject: [PATCH] Don't store debug messages from rtkit-daemon
---
rtkit-daemon.service.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/rtkit-daemon.service.in b/rtkit-daemon.service.in
index d0dc786..7a80d33 100644
--- a/rtkit-daemon.service.in
+++ b/rtkit-daemon.service.in
@@ -26,6 +26,7 @@ NotifyAccess=main
CapabilityBoundingSet=CAP_SYS_NICE CAP_DAC_READ_SEARCH CAP_SYS_PTRACE CAP_SYS_CHROOT CAP_SETGID CAP_SETUID
PrivateTmp=yes
PrivateNetwork=yes
+LogLevelMax=info
[Install]
WantedBy=graphical.target
--
2.45.2

View File

@ -1,22 +0,0 @@
diff --git rtkit-0.11/rtkit-daemon.c~ rtkit-0.11/rtkit-daemon.c
index fdff7f63dc..5f108d842d 100644
--- rtkit-0.11/rtkit-daemon.c~
+++ rtkit-0.11/rtkit-daemon.c
@@ -1485,17 +1485,6 @@ static DBusHandlerResult dbus_handler(DBusConnection *c, DBusMessage *m, void *u
} else
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
- syslog(LOG_DEBUG, "Supervising %u threads of %u processes of %u users.\n",
- n_total_threads,
- n_total_processes,
- n_users);
-
- sd_notifyf(0,
- "STATUS=Supervising %u threads of %u processes of %u users.",
- n_total_threads,
- n_total_processes,
- n_users);
-
finish:
if (r) {
assert_se(dbus_connection_send(c, r, NULL));

View File

@ -31,7 +31,7 @@ Patch: 0001-Fix-borked-error-check.patch
Patch: 0001-systemd-update-sd-daemon.-ch.patch Patch: 0001-systemd-update-sd-daemon.-ch.patch
Patch: 0002-Remove-bundled-copy-of-sd-daemon.-ch.patch Patch: 0002-Remove-bundled-copy-of-sd-daemon.-ch.patch
Patch: remove-debug-messages.patch Patch: 0001-Don-t-store-debug-messages-from-rtkit-daemon.patch
%description %description
RealtimeKit is a D-Bus system service that changes the RealtimeKit is a D-Bus system service that changes the