[Rpm-maint] [rpm-software-management/rpm] Enable hardening options in the build (PR #3445)

Panu Matilainen notifications at github.com
Thu Nov 14 11:51:27 UTC 2024


@pmatilai commented on this pull request.



> @@ -82,8 +84,13 @@ static rpmRC audit_tsm_post(rpmPlugin plugin, rpmts ts, int res)
 	    rasprintf(&eventTxt,
 		    "op=%s %s sw_type=rpm key_enforce=%u gpg_res=%u %s",
 		    op, nevra, enforce, verified, dir);
-	    audit_log_user_comm_message(auditFd, AUDIT_SOFTWARE_UPDATE,
-				    eventTxt, NULL, NULL, NULL, NULL, result);
+	    if (audit_log_user_comm_message(auditFd, AUDIT_SOFTWARE_UPDATE,

Figured it's actually just as easy to do the right thing and make it a warning, just filter out the message you get when auditd isn't running, similarly to what we do in systemd_inhibit and dbus_announce.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3445#discussion_r1842091628
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/3445/review/2435870684 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241114/998e2f19/attachment.html>


More information about the Rpm-maint mailing list