diff options
author | Roman Gushchin <guro@fb.com> | 2018-08-02 14:27:20 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-08-03 00:47:32 +0200 |
commit | d7bf2c10af053191e931b58704cd862fccb7f9de (patch) | |
tree | 825c4684143951754d5490aec16495733e0c6a48 /kernel/cred.c | |
parent | aa0ad5b0391e268bdecf6cda31268388844f8afd (diff) | |
download | linux-stable-d7bf2c10af053191e931b58704cd862fccb7f9de.tar.gz linux-stable-d7bf2c10af053191e931b58704cd862fccb7f9de.tar.bz2 linux-stable-d7bf2c10af053191e931b58704cd862fccb7f9de.zip |
bpf: allocate cgroup storage entries on attaching bpf programs
If a bpf program is using cgroup local storage, allocate
a bpf_cgroup_storage structure automatically on attaching the program
to a cgroup and save the pointer into the corresponding bpf_prog_list
entry.
Analogically, release the cgroup local storage on detaching
of the bpf program.
Signed-off-by: Roman Gushchin <guro@fb.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'kernel/cred.c')
0 files changed, 0 insertions, 0 deletions