]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/journalctl.c
journalctl: expunge verification key from argv (#5081)
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Sun, 15 Jan 2017 04:03:00 +0000 (05:03 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 15 Jan 2017 04:03:00 +0000 (23:03 -0500)
commit6bae9b2abb8a9d04cf7b38b6d343b305f09fecf3
tree8a007e1fe9cfc056800ebde2fa3fbf50883a30dd
parent6b3d378331fe714c7bf2263eaa9a8b33fc878e7c
journalctl: expunge verification key from argv (#5081)

After parsing the --verify-key argument, overwrite it with null bytes.
This minimizes (but does not completely eliminate) the time frame within
which another process on the system can extract the verification key
from the journalctl command line.
src/journal/journalctl.c