06 Nov, 2007

2 commits


24 Oct, 2007

2 commits


20 Oct, 2007

1 commit

  • Most of these fixes were already submitted for old kernel versions, and were
    approved, but for some reason they never made it into the releases.

    Because this is a consolidation of a couple old missed patches, it touches both
    Kconfigs and documentation texts.

    Signed-off-by: Matt LaPlante
    Acked-by: Randy Dunlap
    Signed-off-by: Adrian Bunk

    Matt LaPlante
     

18 Oct, 2007

4 commits

  • 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: Eric Van Hensbergen

    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: Eric Van Hensbergen

    Eric Van Hensbergen
     
  • 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=)
    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: Latchesar Ionkov
    Signed-off-by: Eric Van Hensbergen

    Latchesar Ionkov
     
  • 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: Eric Van Hensbergen

    Eric Van Hensbergen
     

23 Aug, 2007

2 commits

  • When buf_check_overflow() returns != 0 we will hit kfree(ERR_PTR(err))
    and it will not be happy about it.

    Signed-off-by: Mariusz Kozlowski
    Signed-off-by: Eric Van Hensbergen

    Mariusz Kozlowski
     
  • On 7/22/07, Adrian Bunk wrote:
    The Coverity checker spotted the following use-after-free
    in net/9p/mux.c:

    ...
    struct p9_conn *p9_conn_create(struct p9_transport *trans, int msize,
    unsigned char *extended)
    {
    ...
    if (!m->tagpool) {
    kfree(m);
    return ERR_PTR(PTR_ERR(m->tagpool));
    }
    ...

    Also spotted was a leak of the same structure further down in the function.

    Signed-off-by: Eric Van Hensbergen

    Eric Van Hensbergen
     

01 Aug, 2007

1 commit

  • When buf_check_overflow() returns != 0 we will hit kfree(ERR_PTR(err)) and
    it will not be happy about it.

    Signed-off-by: Mariusz Kozlowski
    Cc: Latchesar Ionkov
    Cc: Eric Van Hensbergen
    Cc: Andrew Morton
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mariusz Kozlowski
     

23 Jul, 2007

1 commit

  • The recent 9p commit: bd238fb431f31989898423c8b6496bc8c4204a86 that
    supposedly only moved files also introduced a new 9p sysctl interface
    that did not properly register it's sysctl binary numbers.

    And since it was only for debugging clearly did not need a binary fast
    path in any case. So this patch just remove the binary numbers.

    See Documentation/sysctl/ctl_unnumbered.txt for more details.

    While I was at it I cleaned up the sysctl initializers a little as
    well so there is less to read.

    Cc: Latchesar Ionkov
    Cc: Eric Van Hensbergen
    Signed-off-by: Eric W. Biederman
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     

15 Jul, 2007

4 commits