From: dingtianhong Date: Mon, 25 Mar 2013 17:02:04 +0000 (+0000) Subject: af_unix: dont send SCM_CREDENTIAL when dest socket is NULL X-Git-Tag: v3.9-rc5~28^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14134f6584212d585b310ce95428014b653dfaf6;p=pandora-kernel.git af_unix: dont send SCM_CREDENTIAL when dest socket is NULL SCM_SCREDENTIALS should apply to write() syscalls only either source or destination socket asserted SOCK_PASSCRED. The original implememtation in maybe_add_creds is wrong, and breaks several LSB testcases ( i.e. /tset/LSB.os/netowkr/recvfrom/T.recvfrom). Origionally-authored-by: Karel Srot Signed-off-by: Ding Tianhong Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed