1. 11 10月, 2007 2 次提交
    • P
      [NET]: Make core networking code use seq_open_private · cf7732e4
      Pavel Emelyanov 提交于
      This concerns the ipv4 and ipv6 code mostly, but also the netlink
      and unix sockets.
      
      The netlink code is an example of how to use the __seq_open_private()
      call - it saves the net namespace on this private.
      Signed-off-by: NPavel Emelyanov <xemul@openvz.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cf7732e4
    • E
      [NET]: Make /proc/net per network namespace · 457c4cbc
      Eric W. Biederman 提交于
      This patch makes /proc/net per network namespace.  It modifies the global
      variables proc_net and proc_net_stat to be per network namespace.
      The proc_net file helpers are modified to take a network namespace argument,
      and all of their callers are fixed to pass &init_net for that argument.
      This ensures that all of the /proc/net files are only visible and
      usable in the initial network namespace until the code behind them
      has been updated to be handle multiple network namespaces.
      
      Making /proc/net per namespace is necessary as at least some files
      in /proc/net depend upon the set of network devices which is per
      network namespace, and even more files in /proc/net have contents
      that are relevant to a single network namespace.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      457c4cbc
  2. 11 7月, 2007 1 次提交
  3. 13 2月, 2007 1 次提交
  4. 11 2月, 2007 1 次提交
  5. 03 12月, 2006 1 次提交
  6. 31 10月, 2006 3 次提交
    • J
      [IPV6]: fix flowlabel seqfile handling · 1b7c2dbc
      James Morris 提交于
      There's a bug in the seqfile show operation for flowlabel objects, where 
      each hash chain is traversed cumulatively for each element.  The following 
      function is called for each element of each chain:
      
      static void ip6fl_fl_seq_show(struct seq_file *seq, struct ip6_flowlabel *fl)
      {
              while(fl) {
                      seq_printf...
      		
      		fl = fl->next;
      	}
      }
      
      Thus, objects can appear mutliple times when reading 
      /proc/net/ip6_flowlabel, as the above is called for each element in the 
      chain.
      
      The solution is to remove the while() loop from the above, and traverse 
      each chain exactly once, per the patch below.  This also removes the 
      ip6fl_fl_seq_show() function, which does nothing else.
      Signed-off-by: NJames Morris <jmorris@namei.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1b7c2dbc
    • J
      [IPV6]: return EINVAL for invalid address with flowlabel lease request · c6817e4c
      James Morris 提交于
      Currently, when an application requests a lease for a flowlabel via the 
      IPV6_FLOWLABEL_MGR socket option, no error is returned if an invalid type 
      of destination address is supplied as part of the request, leading to a 
      silent failure.  This patch ensures that EINVAL is returned to the 
      application in this case.
      Signed-off-by: NJames Morris <jmorris@namei.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c6817e4c
    • J
      [IPV6]: fix lockup via /proc/net/ip6_flowlabel · bcd62075
      James Morris 提交于
      There's a bug in the seqfile handling for /proc/net/ip6_flowlabel, where,
      after finding a flowlabel, the code will loop forever not finding any
      further flowlabels, first traversing the rest of the hash bucket then just
      looping.
      
      This patch fixes the problem by breaking after the hash bucket has been
      traversed.
      
      Note that this bug can cause lockups and oopses, and is trivially invoked
      by an unpriveleged user.
      Signed-off-by: NJames Morris <jmorris@namei.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bcd62075
  7. 01 7月, 2006 1 次提交
  8. 21 3月, 2006 1 次提交
  9. 17 1月, 2006 1 次提交
  10. 14 1月, 2006 1 次提交
    • J
      [NET]: Use NIP6_FMT in kernel.h · 46b86a2d
      Joe Perches 提交于
      There are errors and inconsistency in the display of NIP6 strings.
      	ie: net/ipv6/ip6_flowlabel.c
      
      There are errors and inconsistency in the display of NIPQUAD strings too.
      	ie: net/netfilter/nf_conntrack_ftp.c
      
      This patch:
      	adds NIP6_FMT to kernel.h
      	changes all code to use NIP6_FMT
      	fixes net/ipv6/ip6_flowlabel.c
      	adds NIPQUAD_FMT to kernel.h
      	fixes net/netfilter/nf_conntrack_ftp.c
      	changes a few uses of "%u.%u.%u.%u" to NIPQUAD_FMT for symmetry to NIP6_FMT
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      46b86a2d
  11. 12 1月, 2006 1 次提交
  12. 04 1月, 2006 1 次提交
  13. 20 11月, 2005 1 次提交
  14. 26 10月, 2005 1 次提交
  15. 10 9月, 2005 1 次提交
  16. 08 9月, 2005 2 次提交
  17. 29 6月, 2005 1 次提交
  18. 30 5月, 2005 1 次提交
  19. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4