]> git.ipfire.org Git - thirdparty/systemd.git/commit
firstboot: validate keymap entry
authorEric Daigle <eric.daigle@mailbox.org>
Fri, 9 Feb 2024 07:09:34 +0000 (23:09 -0800)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 12 Feb 2024 09:23:38 +0000 (10:23 +0100)
commit321a8c595e3470a0fe9002014656eee6a50b9553
tree723441b8f416a156b20af2ca71913e340d05e7a2
parent3588c510d3bdba2a27fe7fde1deb07e899ea9cd7
firstboot: validate keymap entry

As described in #30940, systemd-firstboot currently does not perform
any validation on keymap entry, allowing nonexistent keymaps to be
written to /etc/vconsole.conf. This commit adds validation checks
based on those already performed on locale entry, preventing invalid
keymaps from being set.

Closes #30940

m
src/firstboot/firstboot.c