OSDN Git Service

netfilter: xt_qtaguid: Fix socket refcounts when tagging
authorJP Abgrall <jpa@google.com>
Wed, 17 Aug 2011 23:43:00 +0000 (16:43 -0700)
committerJP Abgrall <jpa@google.com>
Wed, 17 Aug 2011 23:43:16 +0000 (16:43 -0700)
commit7cec4833d01b9597a65e28173c7c231135365d3d
tree281f036819ef709e82f9011332aca4eda45ea1d3
parentceb40e21b2676060396abdb0dcde9f20d73bfe62
netfilter: xt_qtaguid: Fix socket refcounts when tagging

* Don't hold the sockets after tagging.
  sockfd_lookup() does a get() on the associated file.
  There was no matching put() so a closed socket could never be
  freed.
* Don't rely on struct member order for tag_node
  The structs that had a struct tag_node member would work with
  the *_tree_* routines only because tag_node was 1st.
* Improve debug messages
  Provide info on who the caller is. Use unsigned int for uid.
* Only process NETDEV_UP events.
* Pacifier: disable netfilter matching. Leave .../stats header.

Change-Id: Iccb8ae3cca9608210c417597287a2391010dff2c
Signed-off-by: JP Abgrall <jpa@google.com>
net/netfilter/xt_qtaguid.c