]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
cgrulesengd: Ignore netlink messages that don't come from the kernel.
authorNelson Elhage <nelhage@ksplice.com>
Fri, 18 Feb 2011 01:55:12 +0000 (20:55 -0500)
committerJan Safranek <jsafrane@redhat.com>
Wed, 23 Feb 2011 12:28:27 +0000 (13:28 +0100)
commit0a59ea5e0b2ce466bfd35c9e700094bf09a0310d
treeced851cd41aeb5c0c7104f4f17f986a9873f8d07
parentbb6dfd8f11081f4a7b3af815a8e3ef51afb3b0d9
cgrulesengd: Ignore netlink messages that don't come from the kernel.

recvfrom() returns the address, it doesn't filter the packet based on the
sender. We need to explicitly check the received address after the call happens.

Signed-off-by: Nelson Elhage <nelhage@ksplice.com>
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
src/daemon/cgrulesengd.c