linux/tools/include/uapi
Pu Lehui 0e426a3ae0 bpf, cgroup: Reject prog_attach_flags array when effective query
Attach flags is only valid for attached progs of this layer cgroup,
but not for effective progs. For querying with EFFECTIVE flags,
exporting attach flags does not make sense. So when effective query,
we reject prog_attach_flags array and don't need to populate it.
Also we limit attach_flags to output 0 during effective query.

Fixes: b79c9fc955 ("bpf: implement BPF_PROG_QUERY for BPF_LSM_CGROUP")
Signed-off-by: Pu Lehui <pulehui@huawei.com>
Link: https://lore.kernel.org/r/20220921104604.2340580-2-pulehui@huaweicloud.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
2022-09-21 10:57:12 -07:00
..
asm LoongArch: Add other common headers 2022-06-03 20:09:28 +08:00
asm-generic asm-generic: updates for 6.0 2022-08-05 10:07:23 -07:00
drm tools headers UAPI: Sync drm/i915_drm.h with the kernel sources 2022-08-19 15:30:34 -03:00
linux bpf, cgroup: Reject prog_attach_flags array when effective query 2022-09-21 10:57:12 -07:00
sound treewide: uapi: Replace zero-length arrays with flexible-array members 2022-06-28 21:26:05 +02:00