Subject: Re: [PATCH iproute2] tc: fix bpf compilation with old glibc

From: Stephen Hemminger <[email-masked]>
Date: Wed, 22 Jul 2015 09:47:02 -0700

On Wed, 22 Jul 2015 13:05:32 +0000
Daniel Borkmann <[email-masked]> wrote:

> On 07/22/2015 02:29 PM, Nicolas Dichtel wrote:
> > 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
> >
> > CC: Daniel Borkmann <[email-masked]>
> > Fixes: 88eea5395483 ("tc: {f,m}_bpf: allow to retrieve uds path from env")
> > Signed-off-by: Nicolas Dichtel <[email-masked]>
> 
> Thanks Nicolas! I am thinking we should probably just stick to getenv()
> and convert these two users.
> 
> Thanks,
> Daniel

Yes, please use getenv() unless there is a obvious special
security requirement involved.