aboutsummaryrefslogtreecommitdiffstats
path: root/security/bpf/hooks.c
diff options
context:
space:
mode:
authorKP Singh <[email protected]>2020-08-25 18:29:15 +0000
committerAlexei Starovoitov <[email protected]>2020-08-25 22:00:04 +0000
commitf836a56e84ffc9f1a1cd73f77e10404ca46a4616 (patch)
treec8ecb11c7e153aa30411b1691ff434ea68530217 /security/bpf/hooks.c
parentbpf: Generalize caching for sk_storage. (diff)
downloadkernel-f836a56e84ffc9f1a1cd73f77e10404ca46a4616.tar.gz
kernel-f836a56e84ffc9f1a1cd73f77e10404ca46a4616.zip
bpf: Generalize bpf_sk_storage
Refactor the functionality in bpf_sk_storage.c so that concept of storage linked to kernel objects can be extended to other objects like inode, task_struct etc. Each new local storage will still be a separate map and provide its own set of helpers. This allows for future object specific extensions and still share a lot of the underlying implementation. This includes the changes suggested by Martin in: https://lore.kernel.org/bpf/[email protected]/ adding new map operations to support bpf_local_storage maps: * storages for different kernel objects to optionally have different memory charging strategy (map_local_storage_charge, map_local_storage_uncharge) * Functionality to extract the storage pointer from a pointer to the owning object (map_owner_storage_ptr) Co-developed-by: Martin KaFai Lau <[email protected]> Signed-off-by: Martin KaFai Lau <[email protected]> Signed-off-by: KP Singh <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'security/bpf/hooks.c')
0 files changed, 0 insertions, 0 deletions