summaryrefslogtreecommitdiffstats
path: root/tc
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2015-07-23 09:17:41 +0200
committerStephen Hemminger <shemming@brocade.com>2015-07-27 14:35:42 -0700
commit611f70b28719f09ca7bb998047915fa2aca52a2d (patch)
treefada12f694ea1a9494f6665ae7328c446740ca0a /tc
parent814f9b9919b5f0eab6b9746b15e2cf91b087bc9a (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.c2
-rw-r--r--tc/m_bpf.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tc/f_bpf.c b/tc/f_bpf.c
index c21bf33f..490dc6b4 100644
--- a/tc/f_bpf.c
+++ b/tc/f_bpf.c
@@ -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();
diff --git a/tc/m_bpf.c b/tc/m_bpf.c
index 9ddb6672..c51f44fc 100644
--- a/tc/m_bpf.c
+++ b/tc/m_bpf.c
@@ -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();