Thread (14 messages) flat view 14 messages, 3 authors, 2020-11-26

Re: [PATCH v2 3/5] bpf: Expose bpf_sk_storage_* to iterator programs

From: KP Singh <hidden>
Date: 2020-11-19 22:05:44
Also in: bpf, lkml

On Thu, Nov 19, 2020 at 5:27 PM Florent Revest [off-list ref] wrote:
From: Florent Revest <redacted>

Iterators are currently used to expose kernel information to userspace
over fast procfs-like files but iterators could also be used to
manipulate local storage. For example, the task_file iterator could be
used to initialize a socket local storage with associations between
processes and sockets or to selectively delete local storage values.

This exposes both socket local storage helpers to all iterators.
Alternatively we could expose it to only certain iterators with strcmps
on prog->aux->attach_func_name.
Since you mentioned the alternative here, maybe you can also
explain why you chose the current approach.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help