[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1366820565.8964.78.camel@edumazet-glaptop>
Date: Wed, 24 Apr 2013 09:22:45 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Nicolas Dichtel <nicolas.dichtel@...nd.com>
Cc: netdev@...r.kernel.org, xiyou.wangcong@...il.com,
davem@...emloft.net
Subject: Re: [PATCH net-next v2 3/5] sock_diag: allow to dump bpf filters
On Wed, 2013-04-24 at 17:52 +0200, Nicolas Dichtel wrote:
> This patch allows to dump BPF filters attached to a socket with
> SO_ATTACH_FILTER. In other words, users allowing to open netlink sockets can
> see filters set on a socket (when the diag module of the socket family is
> loaded).
To my knowledge, opening netlink sockets is not restricted.
I do not want user lambda being able to see my BPF filters.
I am root, and was assuming user lambda could not spy on me.
$ cat /proc/net/packet
sk RefCnt Type Proto Iface R Rmem User Inode
0000000000000000 3 10 0003 3 1 0 0 1089989
0000000000000000 3 10 0003 2 1 0 0 1050535
0000000000000000 3 2 888e 3 1 0 0 1041970
With this information, it seems safe enough, but the whole BPF could
give interesting ideas to user lambda.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists