]> git.proxmox.com Git - mirror_iproute2.git/commit
tc: fix bpf compilation with old glibc
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Thu, 23 Jul 2015 07:17:41 +0000 (09:17 +0200)
committerStephen Hemminger <shemming@brocade.com>
Mon, 27 Jul 2015 21:35:42 +0000 (14:35 -0700)
commit611f70b28719f09ca7bb998047915fa2aca52a2d
treefada12f694ea1a9494f6665ae7328c446740ca0a
parent814f9b9919b5f0eab6b9746b15e2cf91b087bc9a
tc: fix bpf compilation with old glibc

Error was:
f_bpf.o: In function `bpf_parse_opt':
f_bpf.c:(.text+0x88f): undefined reference to `secure_getenv'
m_bpf.o: In function `parse_bpf':
m_bpf.c:(.text+0x587): undefined reference to `secure_getenv'
collect2: error: ld returned 1 exit status

There is no special reason to use the secure version of getenv, thus let's
simply use getenv().

CC: Daniel Borkmann <daniel@iogearbox.net>
Fixes: 88eea5395483 ("tc: {f,m}_bpf: allow to retrieve uds path from env")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Tested-by: Yegor Yefremov <yegorslists@googlemail.com>
examples/bpf/bpf_agent.c
tc/f_bpf.c
tc/m_bpf.c