diff options
| author | Paul Chaignon <paul.chaignon@gmail.com> | 2023-08-24 13:29:26 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-08-25 14:18:37 +0000 |
| commit | 96e2da37710a4f74ccb24cf782cc98dd7c015e1c (patch) | |
| tree | a4f60826c6a6596f8270e17aa6f2e1f09978d1d0 /sys/linux/bpf.txt.const | |
| parent | 7481b108ac4af790dfc163514c6dc3a1ff5f3902 (diff) | |
sys/linux: support O_PATH fds in BPF_OBJ_* cmds
Commit [1] upstream added support for O_PATH fds in BPF_OBJ_* commands.
This commit implements the same support in syzkaller.
The flag BPF_F_PATH_FD must be set when passing an O_PATH to the
BPF_OBJ_* commands. We therefore declare generic and O_PATH-specific
variants of the existing BPF_OBJ structs.
1 - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cb8edce2807
Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Diffstat (limited to 'sys/linux/bpf.txt.const')
| -rw-r--r-- | sys/linux/bpf.txt.const | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/linux/bpf.txt.const b/sys/linux/bpf.txt.const index 176faccfa..9a2b54374 100644 --- a/sys/linux/bpf.txt.const +++ b/sys/linux/bpf.txt.const @@ -68,6 +68,7 @@ BPF_F_MMAPABLE = 1024 BPF_F_NO_COMMON_LRU = 2 BPF_F_NO_PREALLOC = 1 BPF_F_NUMA_NODE = 4 +BPF_F_PATH_FD = 16384 BPF_F_PRESERVE_ELEMS = 2048 BPF_F_QUERY_EFFECTIVE = 1 BPF_F_RDONLY = 8 |
