1. 18 10月, 2007 6 次提交
    • P
      [INET]: Consolidate xxx_frag_alloc() · e521db9d
      Pavel Emelyanov 提交于
      Just perform the kzalloc() allocation and setup common
      fields in the inet_frag_queue(). Then return the result
      to the caller to initialize the rest.
      
      The inet_frag_alloc() may return NULL, so check the 
      return value before doing the container_of(). This looks 
      ugly, but the xxx_frag_alloc() will be removed soon.
      
      The xxx_expire() timer callbacks are patches, 
      because the argument is now the inet_frag_queue, not 
      the protocol specific queue.
      Signed-off-by: NPavel Emelyanov <xemul@openvz.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e521db9d
    • P
      [INET]: Consolidate xxx_frag_intern · 2588fe1d
      Pavel Emelyanov 提交于
      This routine checks for the existence of a given entry
      in the hash table and inserts the new one if needed.
      
      The ->equal callback is used to compare two frag_queue-s
      together, but this one is temporary and will be removed
      later. The netfilter code and the ipv6 one use the same
      routine to compare frags.
      
      The inet_frag_intern() always returns non-NULL pointer,
      so convert the inet_frag_queue into protocol specific
      one (with the container_of) without any checks.
      Signed-off-by: NPavel Emelyanov <xemul@openvz.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2588fe1d
    • E
      9p: remove sysctl · 982c37cf
      Eric Van Hensbergen 提交于
      A sysctl method was added to enable and disable debugging levels.  After
      further review, it was decided that there are better approaches to doing this
      and the sysctl methodology isn't really desirable.  This patch removes the
      sysctl code from 9p.
      Signed-off-by: NEric Van Hensbergen <ericvh@gmail.com>
        
      982c37cf
    • E
      9p: fix bad kconfig cross-dependency · fb0466c3
      Eric Van Hensbergen 提交于
      This patch moves transport dynamic registration and matching to the net
      module to prevent a bad Kconfig dependency between the net and fs 9p modules.
      Signed-off-by: NEric Van Hensbergen <ericvh@gmail.com>
      fb0466c3
    • L
      9p: attach-per-user · ba17674f
      Latchesar Ionkov 提交于
      The 9P2000 protocol requires the authentication and permission checks to be
      done in the file server. For that reason every user that accesses the file
      server tree has to authenticate and attach to the server separately.
      Multiple users can share the same connection to the server.
      
      Currently v9fs does a single attach and executes all I/O operations as a
      single user. This makes using v9fs in multiuser environment unsafe as it
      depends on the client doing the permission checking.
      
      This patch improves the 9P2000 support by allowing every user to attach
      separately. The patch defines three modes of access (new mount option
      'access'):
      
      - attach-per-user (access=user) (default mode for 9P2000.u)
       If a user tries to access a file served by v9fs for the first time, v9fs
       sends an attach command to the server (Tattach) specifying the user. If
       the attach succeeds, the user can access the v9fs tree.
       As there is no uname->uid (string->integer) mapping yet, this mode works
       only with the 9P2000.u dialect.
      
      - allow only one user to access the tree (access=<uid>)
       Only the user with uid can access the v9fs tree. Other users that attempt
       to access it will get EPERM error.
      
      - do all operations as a single user (access=any) (default for 9P2000)
       V9fs does a single attach and all operations are done as a single user.
       If this mode is selected, the v9fs behavior is identical with the current
       one.
      Signed-off-by: NLatchesar Ionkov <lucho@ionkov.net>
      Signed-off-by: NEric Van Hensbergen <ericvh@gmail.com>
      ba17674f
    • E
      9p: Make transports dynamic · a80d923e
      Eric Van Hensbergen 提交于
      This patch abstracts out the interfaces to underlying transports so that
      new transports can be added as modules.  This should also allow kernel
      configuration of transports without ifdef-hell.
      Signed-off-by: NEric Van Hensbergen <ericvh@gmail.com>
      a80d923e
  2. 16 10月, 2007 12 次提交
  3. 11 10月, 2007 22 次提交