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

elf_reader: don't use BPF_F_RDONLY_PROG flag to trigger map freezing #1568

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

ti-mo
Copy link
Collaborator

@ti-mo ti-mo commented Sep 24, 2024

In #1558 (review), it was pointed out that BPF_F_RDONLY_PROG only implies a map being read-only from bpf space, not user space. Using the flag to trigger freezing a map from user space doesn't make much sense.

Change this to a name-based trigger, more closely resembling the libbpf behaviour.

In cilium#1558, it was pointed out that BPF_F_RDONLY_PROG only implies a map being
read-only from bpf space, not user space. Using the flag to trigger freezing
a map from user space doesn't make much sense.

Change this to a name-based trigger, more closely resembling the libbpf
behaviour.

Signed-off-by: Timo Beckers <timo@isovalent.com>
@ti-mo ti-mo requested a review from a team as a code owner September 24, 2024 13:50
@ti-mo ti-mo merged commit 21f2c7e into cilium:main Sep 24, 2024
17 checks passed
@ti-mo ti-mo deleted the tb/fix-freeze-flag branch September 24, 2024 14:13
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