Invalid SYSLOG_PID for (systemd) journal messages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sssd (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Bionic |
Won't Fix
|
Low
|
Unassigned | ||
Focal |
Fix Released
|
Low
|
Unassigned | ||
Groovy |
Fix Released
|
Low
|
Unassigned | ||
Hirsute |
Fix Released
|
Low
|
Unassigned |
Bug Description
[Impact]
* On Ubuntu (Focal) 20.04, SSSD 2.2.3-3, logs in journald have invalid
(non-numeric) SYSLOG_PID. Any tooling collecting SYSLOG_PID further, or
attempting to work with syslog directly, fail to parse the PID as number.
* systemd does not validate, and simply expects SYSLOG_PID as numeric
integers formatted as decimal strings:
https:/
* Fixed upstream by https:/
and https:/
and https:/
[Test Case]
* Deploy fresh 20.04 image, and update:
apt update && apt dist-upgrade
* apt -qqy install sssd
* cat << EOF > /etc/sssd/sssd.conf
[sssd]
config_
domains = EXAMPLE.COM
services =
[nss]
[pam]
[sudo]
[domain/
id_provider = files
access_provider = permit
EOF
* chmod 600 /etc/sssd/sssd.conf
* systemctl restart sssd.service
* journalctl -o verbose -u sssd.service 'MESSAGE=Starting up' |
grep SYSLOG_IDENTIFIER=
SYSLOG_
SYSLOG_
* journalctl -u sssd.service 'MESSAGE=Starting up'
Dec 07 14:10:00 servername sssd[1234]: Starting up
Dec 07 14:10:00 servername sssd[be[1235]: Starting up
* grep -E '(sssd|be)[\[\:]' /var/log/syslog
Dec 07 14:10:00 servername sssd: Starting up
Dec 07 14:10:00 servername sssd[be[
[Where problems could occur]
* Someone might depend on the malformed output already, and have tooling in
place to transform it manually.
* Changes to log messages can cause lines to get picked up by things like
logwatch that weren't before.
Related branches
- Bryce Harrington (community): Approve
- Canonical Server Core Reviewers: Pending requested
-
Diff: 315 lines (+236/-2)7 files modifieddebian/apparmor-profile (+5/-0)
debian/changelog (+85/-0)
debian/control (+3/-2)
debian/patches/disable-fail_over-tests.patch (+56/-0)
debian/patches/fix-python-tests.patch (+83/-0)
debian/patches/series (+2/-0)
debian/rules (+2/-0)
description: | updated |
no longer affects: | systemd (Ubuntu) |
Changed in sssd (Ubuntu): | |
status: | Triaged → Fix Released |
importance: | Undecided → Low |
Changed in sssd (Ubuntu Focal): | |
importance: | Undecided → Low |
description: | updated |
Changed in sssd (Ubuntu Bionic): | |
importance: | Undecided → Low |
description: | updated |
Thank you for taking the time to file a bug report.
I was able to reproduce a similar behavior following the steps you described. I am going to mark this bug as Triaged ans subscribe our team to take a look at it any time soon.