diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2015-07-23 09:17:41 +0200 |
---|---|---|
committer | Stephen Hemminger <shemming@brocade.com> | 2015-07-27 14:35:42 -0700 |
commit | 611f70b28719f09ca7bb998047915fa2aca52a2d (patch) | |
tree | fada12f694ea1a9494f6665ae7328c446740ca0a /tc | |
parent | 814f9b9919b5f0eab6b9746b15e2cf91b087bc9a (diff) |
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>
Diffstat (limited to 'tc')
-rw-r--r-- | tc/f_bpf.c | 2 | ||||
-rw-r--r-- | tc/m_bpf.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -122,7 +122,7 @@ opt_bpf: NEXT_ARG(); if (ebpf) { - bpf_uds_name = secure_getenv(BPF_ENV_UDS); + bpf_uds_name = getenv(BPF_ENV_UDS); bpf_obj = *argv; NEXT_ARG(); @@ -105,7 +105,7 @@ opt_bpf: NEXT_ARG(); if (ebpf) { - bpf_uds_name = secure_getenv(BPF_ENV_UDS); + bpf_uds_name = getenv(BPF_ENV_UDS); bpf_obj = *argv; NEXT_ARG(); |