Skip to content

Comments

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

Merged
ti-mo merged 1 commit intocilium:mainfrom
ti-mo:tb/fix-freeze-flag
Sep 24, 2024
Merged

elf_reader: don't use BPF_F_RDONLY_PROG flag to trigger map freezing#1568
ti-mo merged 1 commit intocilium:mainfrom
ti-mo:tb/fix-freeze-flag

Conversation

@ti-mo
Copy link
Contributor

@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 <[email protected]>
@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
@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