From: Stephen Smalley Date: Wed, 10 Jun 2015 12:44:59 +0000 (-0400) Subject: net/unix: support SCM_SECURITY for stream sockets X-Git-Tag: omap-for-v4.2/fixes-rc1^2~134^2~98 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37a9a8df8ce9de6ea73349c9ac8bdf6ba4ec4f70;p=pandora-kernel.git net/unix: support SCM_SECURITY for stream sockets SCM_SECURITY was originally only implemented for datagram sockets, not for stream sockets. However, SCM_CREDENTIALS is supported on Unix stream sockets. For consistency, implement Unix stream support for SCM_SECURITY as well. Also clean up the existing code and get rid of the superfluous UNIXSID macro. Motivated by https://bugzilla.redhat.com/show_bug.cgi?id=1224211, where systemd was using SCM_CREDENTIALS and assumed wrongly that SCM_SECURITY was also supported on Unix stream sockets. Signed-off-by: Stephen Smalley Acked-by: Paul Moore Signed-off-by: David S. Miller --- Reading git-diff-tree failed