]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: reject wall messages containing control characters
authorLuca Boccassi <luca.boccassi@gmail.com>
Mon, 13 Apr 2026 19:26:22 +0000 (20:26 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 13 Apr 2026 21:11:50 +0000 (22:11 +0100)
commit4bf9db731445ba72a9e5097561e1883dfe1183d8
treece19b4767ee2c92347f58e11df3901aa36eb5030
parent04f32dddd7221de01c4da70128bd5fb21bc53427
logind: reject wall messages containing control characters

method_set_wall_message() and the property setter only checked the
message length but not its content. Since wall messages are broadcast
to all TTYs, control characters in the message could interfere with
terminal state. Reject messages containing control characters other
than newline and tab.

Follow-up for 9ef15026c0e7e6600372056c43442c99ec53746e
Follow-up for e2fa5721c3ee5ea400b99a6463e8c1c257e20415
src/login/logind-dbus.c