From: Maciej Żenczykowski Date: Thu, 20 Oct 2011 22:21:36 +0000 (-0400) Subject: net: allow CAP_NET_RAW to set socket options IP{,V6}_TRANSPARENT X-Git-Tag: v3.2-rc1~182^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cc7a765c2987f03ba278dac03c7cc759ee198e7;p=pandora-kernel.git net: allow CAP_NET_RAW to set socket options IP{,V6}_TRANSPARENT Up till now the IP{,V6}_TRANSPARENT socket options (which actually set the same bit in the socket struct) have required CAP_NET_ADMIN privileges to set or clear the option. - we make clearing the bit not require any privileges. - we allow CAP_NET_ADMIN to set the bit (as before this change) - we allow CAP_NET_RAW to set this bit, because raw sockets already pretty much effectively allow you to emulate socket transparency. Signed-off-by: Maciej Żenczykowski Signed-off-by: David S. Miller --- Reading git-diff-tree failed