bpf: add destructive kfunc flag
authorArtem Savkov <asavkov@redhat.com>
Wed, 10 Aug 2022 06:59:03 +0000 (08:59 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 10 Aug 2022 16:22:18 +0000 (09:22 -0700)
commit4dd48c6f1f83290d4bc61b43e61d86f8bc6c310e
tree9c01d2a53dac7963116e41142333f73b27d1aa79
parent3143d10b094596f3e5d5964b2660375e586652a3
bpf: add destructive kfunc flag

Add KF_DESTRUCTIVE flag for destructive functions. Functions with this
flag set will require CAP_SYS_BOOT capabilities.

Signed-off-by: Artem Savkov <asavkov@redhat.com>
Link: https://lore.kernel.org/r/20220810065905.475418-2-asavkov@redhat.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Documentation/bpf/kfuncs.rst
include/linux/btf.h
kernel/bpf/verifier.c