Summary: | localectl should verify all keymap parameters more accurately (for example not allow newlines) | ||
---|---|---|---|
Product: | systemd | Reporter: | Alexandre Minoshi <minoshi> |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED FIXED | QA Contact: | systemd-bugs |
Severity: | major | ||
Priority: | medium | CC: | zbyszek |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Alexandre Minoshi
2013-05-25 01:44:12 UTC
I can confirm that we will write strings with whitespace, which are then silently ignored by X. The syntax for the option string doesn't seem to be explictly documented anywhere though. I guess we might want to simply reject options with whitespace, which would probably catch many simple errors. A more ambitious option would be to try to actually verify the option string. In principle 'localectl list-x11-keymap-options' lists the options and we could split at commas and verify that the options are in that list... I have no idea how robust this check would be, i.e. how often X would actually accept options not on this list. I'm not sure if we want to open this can of worms. *** Bug 74108 has been marked as a duplicate of this bug. *** |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.