13 Nov, 2007

2 commits

  • ...and fix a couple of bugs in the NBD, CIFS and OCFS2 socket handlers.

    Looking at the sock->op->shutdown() handlers, it looks as if all of them
    take a SHUT_RD/SHUT_WR/SHUT_RDWR argument instead of the
    RCV_SHUTDOWN/SEND_SHUTDOWN arguments.
    Add a helper, and then define the SHUT_* enum to ensure that kernel users
    of shutdown() don't get confused.

    Signed-off-by: Trond Myklebust
    Acked-by: Mark Fasheh
    Acked-by: David Howells
    Signed-off-by: David S. Miller

    Trond Myklebust
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6: (21 commits)
    [CIFS] fix oops on second mount to same server when null auth is used
    [CIFS] Fix stale mode after readdir when cifsacl specified
    [CIFS] add mode to acl conversion helper function
    [CIFS] Fix incorrect mode when ACL had deny access control entries
    [CIFS] Add uid to key description so krb can handle user mounts
    [CIFS] Fix walking out end of cifs dacl
    [CIFS] Add upcall files for cifs to use spnego/kerberos
    [CIFS] add OIDs for KRB5 and MSKRB5 to ASN1 parsing routines
    [CIFS] Register and unregister cifs_spnego_key_type on module init/exit
    [CIFS] implement upcalls for SPNEGO blob via keyctl API
    [CIFS] allow cifs_calc_signature2 to deal with a zero length iovec
    [CIFS] If no Access Control Entries, set mode perm bits to zero
    [CIFS] when mount helper missing fix slash wrong direction in share
    [CIFS] Don't request too much permission when reading an ACL
    [CIFS] enable get mode from ACL when cifsacl mount option specified
    [CIFS] ACL support part 8
    [CIFS] acl support part 7
    [CIFS] acl support part 6
    [CIFS] acl support part 6
    [CIFS] remove unused funtion compile warning when experimental off
    ...

    Linus Torvalds
     

10 Nov, 2007

1 commit

  • When a share is mounted using no username, cifs_mount sets
    volume_info.username as a NULL pointer, and the sesInfo userName as an
    empty string. The volume_info.username is passed to a couple of other
    functions to see if there is an existing unc or tcp connection that can
    be used. These functions assume that the username will be a valid
    string that can be passed to strncmp. If the pointer is NULL, then the
    kernel will oops if there's an existing session to which the string
    can be compared.

    This patch changes cifs_mount to set volume_info.username to an empty
    string in this situation, which prevents the oops and should make it
    so that the comparison to other null auth sessions match.

    Signed-off-by: Jeff Layton
    Signed-off-by: Steve French

    Jeff Layton
     

09 Nov, 2007

4 commits

  • When mounted with cifsacl mount option, readdir can not
    instantiate the inode with the estimated mode based on the ACL
    for each file since we have not queried for the ACL for
    each of these files yet. So set the refresh time to zero
    for these inodes so that the next stat will cause the client
    to go to the server for the ACL info so we can build the estimated
    mode (this means we also will issue an extra QueryPathInfo if
    the stat happens within 1 second, but this is trivial compared to
    the time required to open/getacl/close for each).

    ls -l is slower when cifsacl mount option is specified, but
    displays correct mode information.

    Signed-off-by: Shirish Pargaonkar
    Signed-off-by: Steve French

    Steve French
     
  • Acked-by: Shirish Pargaonkar
    Signed-off-by: Steve French

    Steve French
     
  • When mounted with the cifsacl mount option, we were
    treating any deny ACEs found like allow ACEs and it turns out for
    SFU and SUA Windows set these type of access control entries often.
    The order of ACEs is important too. The canonical order that most
    ACL tools and Windows explorer consruct ACLs with is to begin with
    DENY entries then follow with ALLOW, otherwise an allow entry
    could be encountered first, making the subsequent deny entry like "dead
    code which would be superflous since Windows stops when a match is
    made for the operation you are trying to perform for your user

    We start with no permissions in the mode and build up as we find
    permissions (ie allow ACEs). This fixes deny ACEs so they affect
    the mask used to set the subsequent allow ACEs.

    Acked-by: Shirish Pargaonkar
    CC: Alexander Bokovoy
    Signed-off-by: Steve French

    Steve French
     
  • Adds uid to key description fro supporting user mounts
    and minor formating changes

    Acked-by: Jeff Layton
    Signed-off-by: Igor Mammedov
    Signed-off-by: Steve French

    Igor Mammedov
     

06 Nov, 2007

1 commit


05 Nov, 2007

1 commit


03 Nov, 2007

4 commits


02 Nov, 2007

1 commit


01 Nov, 2007

1 commit

  • Kernel bugzilla bug #9228

    If mount helper (mount.cifs) missing, mounts with form like
    //10.11.12.13/c$ would not work (only mounts with slash e.g.
    //10.11.12.13\\c$ would work) due to problem with slash supposed
    to be converted to backslash by the mount helper (which is not
    there).

    If we fail on converting an IPv4 address in in4_pton then
    try to canonicalize the first slash (ie between sharename
    and host ip address) if necessary. If we have to retry
    to check for IPv6 address the slash is already converted
    if necessary.

    Signed-off-by: Steve French

    Steve French
     

31 Oct, 2007

1 commit


30 Oct, 2007

1 commit


27 Oct, 2007

1 commit


26 Oct, 2007

2 commits


24 Oct, 2007

2 commits


22 Oct, 2007

1 commit

  • Now that nfsd has stopped writing to the find_exported_dentry member we an
    mark the export_operations const

    Signed-off-by: Christoph Hellwig
    Cc: Neil Brown
    Cc: "J. Bruce Fields"
    Cc:
    Cc: Dave Kleikamp
    Cc: Anton Altaparmakov
    Cc: David Chinner
    Cc: Timothy Shimmin
    Cc: OGAWA Hirofumi
    Cc: Hugh Dickins
    Cc: Chris Mason
    Cc: Jeff Mahoney
    Cc: "Vladimir V. Saveliev"
    Cc: Steven Whitehouse
    Cc: Mark Fasheh
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     

20 Oct, 2007

3 commits

  • Acked-by: Shirish Pargaonkar
    Signed-off-by: Steve French

    Steve French
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6: (51 commits)
    [CIFS] log better errors on failed mounts
    [CIFS] Return better error when server requires signing but client forbids
    [CIFS] fix typo
    [CIFS] acl support part 4
    [CIFS] Fix minor problems noticed by scan
    [CIFS] fix bad handling of EAGAIN error on kernel_recvmsg in cifs_demultiplex_thread
    [CIFS] build break
    [CIFS] endian fixes
    [CIFS] endian fixes in new acl code
    [CIFS] Fix some endianness problems in new acl code
    [CIFS] missing #endif from a previous patch
    [CIFS] formatting fixes
    [CIFS] Break up unicode_sessetup string functions
    [CIFS] parse server_GUID in SPNEGO negProt response
    [CIFS]
    [CIFS] Fix endian conversion problem in posix mkdir
    [CIFS] fix build break when lanman not enabled
    [CIFS] remove two sparse warnings
    [CIFS] remove compile warnings when debug disabled
    [CIFS] CIFS ACL support part 3
    ...

    Linus Torvalds
     
  • The task_struct->pid member is going to be deprecated, so start
    using the helpers (task_pid_nr/task_pid_vnr/task_pid_nr_ns) in
    the kernel.

    The first thing to start with is the pid, printed to dmesg - in
    this case we may safely use task_pid_nr(). Besides, printks produce
    more (much more) than a half of all the explicit pid usage.

    [akpm@linux-foundation.org: git-drm went and changed lots of stuff]
    Signed-off-by: Pavel Emelyanov
    Cc: Dave Airlie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Emelyanov
     

19 Oct, 2007

2 commits


18 Oct, 2007

5 commits


17 Oct, 2007

7 commits