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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 29 Jun 2020 20:09:10 -0700
From:   Alexei Starovoitov <alexei.starovoitov@...il.com>
To:     Andrii Nakryiko <andriin@...com>
Cc:     bpf@...r.kernel.org, netdev@...r.kernel.org, ast@...com,
        daniel@...earbox.net, andrii.nakryiko@...il.com, kernel-team@...com
Subject: Re: [PATCH bpf-next] libbpf: make bpf_endian co-exist with vmlinux.h

On Mon, Jun 29, 2020 at 07:05:38PM -0700, Andrii Nakryiko wrote:
> Copy over few #defines from UAPI swab.h header to make all the rest of
> bpf_endian.h work and not rely on any extra headers. This way it can be used
> both with linux header includes, as well with a vmlinux.h. This has been
> a frequent complaint from users, that need this header.
> 
> Signed-off-by: Andrii Nakryiko <andriin@...com>
> ---
>  tools/lib/bpf/bpf_endian.h | 22 ++++++++++++++++++++--
>  1 file changed, 20 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/lib/bpf/bpf_endian.h b/tools/lib/bpf/bpf_endian.h
> index fbe28008450f..a4be8a70845c 100644
> --- a/tools/lib/bpf/bpf_endian.h
> +++ b/tools/lib/bpf/bpf_endian.h
> @@ -2,8 +2,26 @@
>  #ifndef __BPF_ENDIAN__
>  #define __BPF_ENDIAN__
>  
> -#include <linux/stddef.h>
> -#include <linux/swab.h>
> +/* copied from include/uapi/linux/swab.h */

You cannot just copy due to different licenses.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ