1. 27 7月, 2011 1 次提交
  2. 22 7月, 2011 1 次提交
  3. 21 7月, 2011 2 次提交
  4. 19 7月, 2011 2 次提交
    • F
      netfilter: nfnetlink_queue: batch verdict support · 97d32cf9
      Florian Westphal 提交于
      Introduces a new nfnetlink type that applies a given
      verdict to all queued packets with an id <= the id in the verdict
      message.
      
      If a mark is provided it is applied to all matched packets.
      
      This reduces the number of verdicts that have to be sent.
      Applications that make use of this feature need to maintain
      a timeout to send a batchverdict periodically to avoid starvation.
      Signed-off-by: NFlorian Westphal <fw@strlen.de>
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      97d32cf9
    • E
      netfilter: nfnetlink_queue: assert monotonic packet ids · 5863702a
      Eric Dumazet 提交于
      Packet identifier is currently setup in nfqnl_build_packet_message(),
      using one atomic_inc_return().
      
      Problem is that since several cpus might concurrently call
      nfqnl_enqueue_packet() for the same queue, we can deliver packets to
      consumer in non monotonic way (packet N+1 being delivered after packet
      N)
      
      This patch moves the packet id setup from nfqnl_build_packet_message()
      to nfqnl_enqueue_packet() to guarantee correct delivery order.
      
      This also removes one atomic operation.
      Signed-off-by: NEric Dumazet <eric.dumazet@gmail.com>
      CC: Florian Westphal <fw@strlen.de>
      CC: Pablo Neira Ayuso <pablo@netfilter.org>
      CC: Eric Leblond <eric@regit.org>
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      5863702a
  5. 18 7月, 2011 2 次提交
  6. 02 7月, 2011 1 次提交
  7. 30 6月, 2011 1 次提交
    • M
      netfilter: add SELinux context support to AUDIT target · 131ad62d
      Mr Dash Four 提交于
      In this revision the conversion of secid to SELinux context and adding it
      to the audit log is moved from xt_AUDIT.c to audit.c with the aid of a
      separate helper function - audit_log_secctx - which does both the conversion
      and logging of SELinux context, thus also preventing internal secid number
      being leaked to userspace. If conversion is not successful an error is raised.
      
      With the introduction of this helper function the work done in xt_AUDIT.c is
      much more simplified. It also opens the possibility of this helper function
      being used by other modules (including auditd itself), if desired. With this
      addition, typical (raw auditd) output after applying the patch would be:
      
      type=NETFILTER_PKT msg=audit(1305852240.082:31012): action=0 hook=1 len=52 inif=? outif=eth0 saddr=10.1.1.7 daddr=10.1.2.1 ipid=16312 proto=6 sport=56150 dport=22 obj=system_u:object_r:ssh_client_packet_t:s0
      type=NETFILTER_PKT msg=audit(1306772064.079:56): action=0 hook=3 len=48 inif=eth0 outif=? smac=00:05:5d:7c:27:0b dmac=00:02:b3:0a:7f:81 macproto=0x0800 saddr=10.1.2.1 daddr=10.1.1.7 ipid=462 proto=6 sport=22 dport=3561 obj=system_u:object_r:ssh_server_packet_t:s0
      Acked-by: NEric Paris <eparis@redhat.com>
      Signed-off-by: NMr Dash Four <mr.dash.four@googlemail.com>
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      131ad62d
  8. 22 6月, 2011 2 次提交
  9. 17 6月, 2011 14 次提交
  10. 16 6月, 2011 1 次提交
    • N
      netfilter: fix looped (broad|multi)cast's MAC handling · 2c38de4c
      Nicolas Cavallari 提交于
      By default, when broadcast or multicast packet are sent from a local
      application, they are sent to the interface then looped by the kernel
      to other local applications, going throught netfilter hooks in the
      process.
      
      These looped packet have their MAC header removed from the skb by the
      kernel looping code. This confuse various netfilter's netlink queue,
      netlink log and the legacy ip_queue, because they try to extract a
      hardware address from these packets, but extracts a part of the IP
      header instead.
      
      This patch prevent NFQUEUE, NFLOG and ip_QUEUE to include a MAC header
      if there is none in the packet.
      Signed-off-by: NNicolas Cavallari <cavallar@lri.fr>
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      2c38de4c
  11. 14 6月, 2011 2 次提交
  12. 13 6月, 2011 3 次提交
  13. 10 6月, 2011 1 次提交
    • G
      rtnetlink: Compute and store minimum ifinfo dump size · c7ac8679
      Greg Rose 提交于
      The message size allocated for rtnl ifinfo dumps was limited to
      a single page.  This is not enough for additional interface info
      available with devices that support SR-IOV and caused a bug in
      which VF info would not be displayed if more than approximately
      40 VFs were created per interface.
      
      Implement a new function pointer for the rtnl_register service that will
      calculate the amount of data required for the ifinfo dump and allocate
      enough data to satisfy the request.
      Signed-off-by: NGreg Rose <gregory.v.rose@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      c7ac8679
  14. 06 6月, 2011 5 次提交
  15. 27 5月, 2011 2 次提交