selinux: fix broken peer recv check
authorChad Hanson <chanson@trustedcs.com>
Mon, 23 Dec 2013 22:45:01 +0000 (17:45 -0500)
committerPaul Moore <pmoore@redhat.com>
Mon, 23 Dec 2013 22:45:17 +0000 (17:45 -0500)
commit46d01d63221c3508421dd72ff9c879f61053cffc
treea540d957750613679ab917082b9d88e7f8561959
parentf5835372ebedf26847c2b9e193284075cc9c1f7f
selinux: fix broken peer recv check

Fix a broken networking check. Return an error if peer recv fails.  If
secmark is active and the packet recv succeeds the peer recv error is
ignored.

Signed-off-by: Chad Hanson <chanson@trustedcs.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paul Moore <pmoore@redhat.com>
security/selinux/hooks.c