Skip to content

Enable options for hid_bpf and landlock #10

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

Open
wants to merge 2 commits into
base: branch_rebase_6.12defconfig
Choose a base branch
from

Conversation

hrdl-github
Copy link

Mentioning @diederikdehaas

These options allow using udev_hid_bpf to trace input events to
measure the input-to-display latency.
##
## file: security/Kconfig
##
CONFIG_LSM="landlock"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason you choose landlock here? It's an improvement over the previous config, but by default it's a whole list, but you only enable "landlock" here.
I assume there's a good reason for it, but please document that in the commit message.

FWIW: The Debian kernel config has CONFIG_DEFAULT_SECURITY_APPARMOR=y

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've amended my commit. The other modules are not enabled yet and I haven't looked into their function yet, so I only enabled what I could readily test.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FTR: I would be absolutely fine to gradually enable these security features one-by-one and see what their effects are. Just document it in git commit message(s).

@diederikdehaas
Copy link

Thanks for properly sorting the entries in arm64: pinenote_defconfig: Add options for hid_bpf 😄

Landlock is used by pacman to restrict filesystem access.
@hrdl-github hrdl-github force-pushed the pn_612_hidbpf_landlock branch from 89e37d8 to d9d498e Compare February 16, 2025 12:17
@diederikdehaas
Copy link

diederikdehaas commented Feb 16, 2025

Haha! So this is needed to run an arch VM on your PineNote running Debian? 😄

Anyway:
Reviewed-by: Diederik de Haas <didi.debian@cknow.org>

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.

2 participants