lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue, 19 Jul 2022 00:58:27 +0900
From:   Juhee Kang <claudiajkang@...il.com>
To:     netdev@...r.kernel.org, dsahern@...nel.org,
        stephen@...workplumber.org
Cc:     Juhee Kang <claudiajkang@...il.com>
Subject: [PATCH iproute2-next] bpf_glue: include errno.h

If __NR_bpf is not enabled, bpf() function set errno and return -1. Thus, 
this patch includes the header.

Fixes: ac4e0913beb1 ("bpf: Export bpf syscall wrapper")
Signed-off-by: Juhee Kang <claudiajkang@...il.com>
---
 lib/bpf_glue.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/bpf_glue.c b/lib/bpf_glue.c
index c1cf351b..88a24751 100644
--- a/lib/bpf_glue.c
+++ b/lib/bpf_glue.c
@@ -7,6 +7,7 @@
 #include <sys/syscall.h>
 #include <limits.h>
 #include <unistd.h>
+#include <errno.h>
 
 #include "bpf_util.h"
 #ifdef HAVE_LIBBPF
-- 
2.34.1

Powered by blists - more mailing lists