Projects
Eulaceura:Factory
pam
_service:obs_scm:backport-pam_selinux-fix-forma...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:backport-pam_selinux-fix-formatting-of-audit-messages.patch of Package pam
From 1648734a69c31e9ce834da70144ac9a453296807 Mon Sep 17 00:00:00 2001 From: Steve Grubb <sgrubb@redhat.com> Date: Fri, 4 Aug 2023 17:45:45 -0400 Subject: [PATCH] pam_selinux: fix formatting of audit messages pam_selinux uses audit_log_user_message to write to the audit system. It does not take an op argument, so you have to add one yourself. Otherwise the pam_selinux part of the message is lost because it's not in key=value format. --- modules/pam_selinux/pam_selinux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/pam_selinux/pam_selinux.c b/modules/pam_selinux/pam_selinux.c index e52e0fc45..713b3f73f 100644 --- a/modules/pam_selinux/pam_selinux.c +++ b/modules/pam_selinux/pam_selinux.c @@ -97,7 +97,7 @@ send_audit_message(const pam_handle_t *pamh, int success, const char *default_co pam_syslog(pamh, LOG_ERR, "Error translating selected context '%s'.", selected_context); selected_raw = NULL; } - if (asprintf(&msg, "pam: default-context=%s selected-context=%s", + if (asprintf(&msg, "op=pam_selinux default-context=%s selected-context=%s", default_raw ? default_raw : (default_context ? default_context : "?"), selected_raw ? selected_raw : (selected_context ? selected_context : "?")) < 0) { msg = NULL; /* asprintf leaves msg in undefined state on failure */
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2