From: Eric W. Biederman Date: Wed, 23 Apr 2014 21:26:25 +0000 (-0700) Subject: net: Move the permission check in sock_diag_put_filterinfo to packet_diag_dump X-Git-Tag: omap-for-v3.16/fixes-against-rc1~214^2~45^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a53b72c83a4216f2eb883ed45a0cbce014b8e62d;p=pandora-kernel.git net: Move the permission check in sock_diag_put_filterinfo to packet_diag_dump The permission check in sock_diag_put_filterinfo is wrong, and it is so removed from it's sources it is not clear why it is wrong. Move the computation into packet_diag_dump and pass a bool of the result into sock_diag_filterinfo. This does not yet correct the capability check but instead simply moves it to make it clear what is going on. Reported-by: Andy Lutomirski Signed-off-by: "Eric W. Biederman" Signed-off-by: David S. Miller --- Reading git-diff-tree failed