Attach flags is only valid for attached progs of this layer cgroup, but not for effective progs. Pu Lehui (2): bpf, cgroup: Fix attach flags being assigned to effective progs bpftool: Fix cgroup attach flags being assigned to effective progs kernel/bpf/cgroup.c | 5 ++++- tools/bpf/bpftool/cgroup.c | 9 +++------ 2 files changed, 7 insertions(+), 7 deletions(-) -- 2.25.1