aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_bsd.h
diff options
context:
space:
mode:
authorPaul Chaignon <paul.chaignon@gmail.com>2024-09-09 14:04:02 +0200
committerAleksandr Nogikh <nogikh@google.com>2024-09-11 15:44:33 +0000
commitfd6ac064b455d73026e1a082d723711015a6aa6b (patch)
tree6d20bf9eaf0df60de438b1a3eb61842a674b3d91 /executor/executor_bsd.h
parent7308f9d5a4da8ea4e2a9a0748ceb0921333c11f4 (diff)
sys/linux: replace id_or_fd with more precise version
The id_or_fd union was introduced before we had conditional fields to represent IDs or fds for BPF programs or links. The union was overapproximating those specific types. With conditional fields, we can now use information from other fields to determine precisely which type from the union is expected. For example, with BPF_PROG_ATTACH, if BPF_F_ID is the only flag, then the relative_fd field should be interpreted as a program ID. Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Diffstat (limited to 'executor/executor_bsd.h')
0 files changed, 0 insertions, 0 deletions