diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2025-04-01 19:57:10 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2025-04-02 11:30:29 +0200 |
commit | 684870a766e7f024a5720464ad070e666cb4793e (patch) | |
tree | 4b7079165654099d844638bec321081523bed131 | |
parent | 76e554d9ec8dc80c1856621e17e45be811d198d0 (diff) | |
download | passt-684870a766e7f024a5720464ad070e666cb4793e.tar passt-684870a766e7f024a5720464ad070e666cb4793e.tar.gz passt-684870a766e7f024a5720464ad070e666cb4793e.tar.bz2 passt-684870a766e7f024a5720464ad070e666cb4793e.tar.lz passt-684870a766e7f024a5720464ad070e666cb4793e.tar.xz passt-684870a766e7f024a5720464ad070e666cb4793e.tar.zst passt-684870a766e7f024a5720464ad070e666cb4793e.zip |
udp: Correct some seccomp filter annotations
Both udp_buf_listen_sock_data() and udp_buf_reply_sock_data() have comments
stating they use recvmmsg(). That's not correct, they only do so via
udp_sock_recv() which lists recvmmsg() itself.
In contrast udp_splice_send() and udp_tap_handler() both directly use
sendmmsg(), but only the latter lists it. Add it to the former as well.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r-- | udp.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -272,6 +272,8 @@ static void udp_splice_prepare(struct mmsghdr *mmh, unsigned idx) * @dst: Destination port for datagrams (target side) * @ref: epoll reference for origin socket * @now: Timestamp + * + * #syscalls sendmmsg */ static void udp_splice_send(const struct ctx *c, size_t start, size_t n, flow_sidx_t tosidx) @@ -662,8 +664,6 @@ static int udp_sock_recv(const struct ctx *c, int s, struct mmsghdr *mmh) * @c: Execution context * @ref: epoll reference * @now: Current timestamp - * - * #syscalls recvmmsg */ static void udp_buf_listen_sock_data(const struct ctx *c, union epoll_ref ref, const struct timespec *now) @@ -760,8 +760,6 @@ void udp_listen_sock_handler(const struct ctx *c, * @tosidx: Flow & side to forward data from @s to * * Return: true on success, false if can't forward from socket to flow's pif - * - * #syscalls recvmmsg */ static bool udp_buf_reply_sock_data(const struct ctx *c, int s, flow_sidx_t tosidx) |