Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate root-level devictree entries in the keymap devicetree #24

Closed
wants to merge 1 commit into from

Conversation

chrisandreae
Copy link
Collaborator

In order to prevent unsafe devicetree overriding in the layout editor 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.

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.
@chrisandreae chrisandreae deleted the validate-devicetree branch June 19, 2024 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant