Files
kernel_arpi/include/uapi/linux
Andrey Ignatov f5bfcd953d bpf: Document BPF_F_QUERY_EFFECTIVE flag
Document BPF_F_QUERY_EFFECTIVE flag, mostly to clarify how it affects
attach_flags what may not be obvious and what may lead to confision.

Specifically attach_flags is returned only for target_fd but if programs
are inherited from an ancestor cgroup then returned attach_flags for
current cgroup may be confusing. For example, two effective programs of
same attach_type can be returned but w/o BPF_F_ALLOW_MULTI in
attach_flags.

Simple repro:
  # bpftool c s /sys/fs/cgroup/path/to/task
  ID       AttachType      AttachFlags     Name
  # bpftool c s /sys/fs/cgroup/path/to/task effective
  ID       AttachType      AttachFlags     Name
  95043    ingress                         tw_ipt_ingress
  95048    ingress                         tw_ingress

Signed-off-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20200108014006.938363-1-rdna@fb.com
2020-01-09 09:40:06 -08:00
..
2020-01-09 09:40:06 -08:00
2019-10-09 22:31:14 -04:00
2019-09-25 17:51:39 -07:00
2019-08-02 14:44:02 +10:00
2019-09-16 10:18:01 -04:00
2019-08-12 19:33:50 -07:00
2019-12-14 20:02:36 -08:00
2019-12-04 19:44:14 -08:00
2019-09-08 15:37:04 +02:00
2019-08-19 13:04:45 -07:00
2019-11-28 08:54:36 -06:00
2019-10-02 20:32:27 -06:00
2019-12-18 13:32:29 -08:00
2019-07-30 20:34:34 +02:00
2019-11-13 12:15:34 -08:00
2020-01-02 15:51:22 -08:00
2019-09-18 20:17:50 +02:00
2019-08-01 21:49:46 +02:00