1. 29 2月, 2008 20 次提交
  2. 28 2月, 2008 18 次提交
  3. 27 2月, 2008 2 次提交
    • P
      [INET]: Don't create tunnels with '%' in name. · b37d428b
      Pavel Emelyanov 提交于
      Four tunnel drivers (ip_gre, ipip, ip6_tunnel and sit) can receive a
      pre-defined name for a device from the userspace.  Since these drivers
      call the register_netdevice() (rtnl_lock, is held), which does _not_
      generate the device's name, this name may contain a '%' character.
      
      Not sure how bad is this to have a device with a '%' in its name, but
      all the other places either use the register_netdev(), which call the
      dev_alloc_name(), or explicitly call the dev_alloc_name() before
      registering, i.e. do not allow for such names.
      
      This had to be prior to the commit 34cc7b, but I forgot to number the
      patches and this one got lost, sorry.
      Signed-off-by: NPavel Emelyanov <xemul@openvz.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b37d428b
    • D
      [AF_KEY]: Fix oops by converting to proc_net_*(). · d9595a7b
      David S. Miller 提交于
      To make sure the procfs visibility occurs after the ->proc_fs ops are
      setup, use proc_net_fops_create() and proc_net_remove().
      
      This also fixes an OOPS after module unload in that the name string
      for remove was wrong, so it wouldn't actually be removed.  That bug
      was introduced by commit 61145aa1
      ("[KEY]: Clean up proc files creation a bit.")
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d9595a7b