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:   Sat, 27 Apr 2019 12:48:25 +0200
From:   Alban Crequy <>
To:     Jakub Kicinski <>
Cc:     Alban Crequy <>,
        John Fastabend <>,
        Alexei Starovoitov <>,
        Daniel Borkmann <>,
        bpf <>, netdev <>,
        LKML <>,
        Iago López Galeiras <>
Subject: Re: [PATCH bpf-next v3 1/4] bpf: sock ops: add netns ino and dev in
 bpf context

On Fri, Apr 26, 2019 at 11:03 PM Jakub Kicinski
<> wrote:
> On Fri, 26 Apr 2019 17:48:45 +0200, Alban Crequy wrote:
> > In the unlikely case where network namespaces are not compiled in
> > (CONFIG_NET_NS=n), the verifier will not allow access to ->netns_*.
> Naive question - why return an error?  init_net should always be there,
> no?

True for netns_dev. However, without CONFIG_NET_NS, we cannot access netns_ino:

(struct sock_common).possible_net_t.(struct net *):

typedef struct {
        struct net *net;
} possible_net_t;

And I don't think it would make much sense to allow access to
netns_dev but not netns_ino.

Powered by blists - more mailing lists