Closed roobre closed 3 months ago
Linking another related issue: https://github.com/kolide/launcher/issues/1522
Could you pass along your OS version and/or systemd version to help us reproduce and test a fix? Thank you!
Yes, this is on Arch Linux (rolling) and systemd 256
19:08:25 ~ #> loginctl --version
systemd 256 (256.1-1-arch-g34ba18b^)
+PAM +AUDIT -SELINUX -APPARMOR -IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBCRYPTSETUP_PLUGINS +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK +XKBCOMMON +UTMP -SYSVINIT +LIBARCHIVE
19:08:59 ~ #> pacman -Q systemd
systemd 256.1-1
This change is merged and will be released in the next launcher release (date TBD but likely within a month).
That's awesome, thank you & kudos @RebeccaMahany!
This was fixed in the v1.9.4 release
I've been chasing for a couple days why the kolide agent wasn't showing a systray icon for me and some other coworkers who use Arch Linux (btw).
In
/var/kolide-k2/k2device.kolide.com/debug.json
I was able to find this message being spammed:Which seems to be caused by this line
https://github.com/kolide/launcher/blob/d80b842f943ee480ecd61ec929bf4dc5400c5a67/ee/consoleuser/consoleuser_linux.go#L23
I believe this is not working because
loginctl --output-json
does not output json on recent systemd versions:The correct flag to get JSON output now seems to be
--json=short
:I was able to work around this by replacing
/usr/bin/loginctl
with a shim script that translates--output=json
to--json=short
, but this is obviously not a very good workaround as it won't survive a systemd update. Placing the shim in/usr/local/bin/
or similar is not possible as Kolide hardcodes this path: https://github.com/kolide/launcher/blob/d80b842f943ee480ecd61ec929bf4dc5400c5a67/ee/allowedcmd/cmd_linux.go#L85It would be great if Kolide would support newer loginctl versions and pass the appropriate flag to them!