aboutsummaryrefslogtreecommitdiff
path: root/fs/fs_struct.c
diff options
context:
space:
mode:
authorMagnus Karlsson <[email protected]>2019-03-12 09:59:45 +0100
committerDaniel Borkmann <[email protected]>2019-03-12 21:58:18 +0100
commit6bf21b54a596d60905cfc7e8af8e2fe16d9fe7e9 (patch)
tree32998f7339acab60393ae7a3fbbb4a303840beec /fs/fs_struct.c
parentd6f1837107c00fa7b2fdb606acf65b33b455dbfd (diff)
libbpf: fix to reject unknown flags in xsk_socket__create()
In xsk_socket__create(), the libbpf_flags field was not checked for setting currently unused/unknown flags. This patch fixes that by returning -EINVAL if the user has set any flag that is not in use at this point in time. Fixes: 1cad07884239 ("libbpf: add support for using AF_XDP sockets") Signed-off-by: Magnus Karlsson <[email protected]> Reviewed-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'fs/fs_struct.c')
0 files changed, 0 insertions, 0 deletions