Ignore:
Timestamp:
Jun 9, 2016, 2:17:22 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: apply latest security patches to vendor

Location:
vendor/current/source3/smbd
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/smbd/conn.c

    r860 r919  
    2424#include "smbd/globals.h"
    2525#include "rpc_server/rpc_ncacn_np.h"
     26#include "lib/util/bitmap.h"
    2627
    2728/* The connections bitmap is expanded in increments of BITMAP_BLOCK_SZ. The
  • vendor/current/source3/smbd/dir.c

    r860 r919  
    2424#include "smbd/globals.h"
    2525#include "libcli/security/security.h"
     26#include "lib/util/bitmap.h"
    2627
    2728/*
  • vendor/current/source3/smbd/files.c

    r917 r919  
    2323#include "libcli/security/security.h"
    2424#include "util_tdb.h"
     25#include "lib/util/bitmap.h"
    2526
    2627#define VALID_FNUM(fnum)   (((fnum) >= 0) && ((fnum) < real_max_open_files))
  • vendor/current/source3/smbd/smb2_server.c

    r860 r919  
    2727#include "../lib/util/tevent_ntstatus.h"
    2828#include "smbprofile.h"
     29#include "../lib/util/bitmap.h"
    2930
    3031#define OUTVEC_ALLOC_SIZE (SMB2_HDR_BODY + 9)
  • vendor/current/source3/smbd/vfs.c

    r917 r919  
    983983                const char *conn_rootdir;
    984984                size_t rootdir_len;
     985                bool matched;
    985986
    986987                conn_rootdir = SMB_VFS_CONNECTPATH(conn, fname);
     
    993994
    994995                rootdir_len = strlen(conn_rootdir);
    995                 if (strncmp(conn_rootdir, resolved_name,
    996                                 rootdir_len) != 0) {
     996                matched = (strncmp(conn_rootdir, resolved_name,
     997                                rootdir_len) == 0);
     998                if (!matched || (resolved_name[rootdir_len] != '/' &&
     999                                 resolved_name[rootdir_len] != '\0')) {
    9971000                        DEBUG(2, ("check_reduced_name: Bad access "
    9981001                                "attempt: %s is a symlink outside the "
Note: See TracChangeset for help on using the changeset viewer.