selinux: fix broken peer recv check
authorChad Hanson <chanson@trustedcs.com>
Wed, 11 Dec 2013 22:07:56 +0000 (17:07 -0500)
committerPaul Moore <pmoore@redhat.com>
Wed, 11 Dec 2013 22:07:56 +0000 (17:07 -0500)
commit598cdbcf861825692fe7905e0fd662c7d06bae58
treec8114efd8770a9c8ee85f3e4c5cdec21447ba500
parent5c6c26813a209e7075baf908e3ad81c1a9d389e8
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>
Signed-off-by: Paul Moore <pmoore@redhat.com>
security/selinux/hooks.c