forked from zmkfirmware/zmk
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate root-level devictree entries in the keymap devicetree
In order to prevent unsafe devicetree overriding via keymap files, require the root level devicetree entries in the provided keymap to match a strict allow-list. This is in fact more restrictive than necessary, because it'd be legitimate to define for example a `compatible = "zmk,behavior-hold-tap";` section at the top level, but it's much easier to safely validate.
- Loading branch information
1 parent
b96441a
commit 8759c95
Showing
2 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters