1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3: safe_string: do not include string_wrappers.h

Rather than have safe_string.h #include string_wrappers.h, make users of
string_wrappers.h include it explicitly.

includes.h now no longer includes string_wrappers.h transitively. Still
allow includes.h to #include safe_string.h for now so that as many
modules as possible get the safety checks in it.

Signed-off-by: Matthew DeVore <matvore@google.com>
Reviewed-by: David Mulder <dmulder@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Matthew DeVore 2020-08-07 11:17:34 -07:00 committed by Jeremy Allison
parent 1fde7db3bc
commit c2ac923c6a
114 changed files with 113 additions and 2 deletions

View File

@ -27,6 +27,7 @@
#include "registry.h"
#include "registry/reg_api.h"
#include "lib/util/util_paths.h"
#include "lib/util/string_wrappers.h"
static struct gp_extension *extensions = NULL;

View File

@ -22,6 +22,7 @@
#include "libsmb/libsmb.h"
#include "../libgpo/gpo.h"
#include "libgpo/gpo_proto.h"
#include "lib/util/string_wrappers.h"
struct sync_context {
TALLOC_CTX *mem_ctx;

View File

@ -28,6 +28,7 @@
#include "lib/cmdline/popt_common.h"
#include "lib/afs/afs_settoken.h"
#include "lib/util/smb_strtox.h"
#include "lib/util/string_wrappers.h"
#ifdef DBGC_CLASS
#undef DBGC_CLASS

View File

@ -21,6 +21,7 @@
#include "includes.h"
#include "nsswitch/winbind_client.h"
#include "nsswitch/libwbclient/wbclient.h"
#include "lib/util/string_wrappers.h"
#ifdef HAVE_NS_API_H

View File

@ -20,6 +20,7 @@
#include "includes.h"
#include "auth.h"
#include "lib/util/string_wrappers.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_AUTH

View File

@ -29,6 +29,7 @@
#include "includes.h"
#include "auth.h"
#include "../libcli/auth/pam_errors.h"
#include "lib/util/string_wrappers.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_AUTH

View File

@ -40,6 +40,7 @@
#include "include/ntioctl.h"
#include "../libcli/smb/smbXcli_base.h"
#include "lib/util/time_basic.h"
#include "lib/util/string_wrappers.h"
#ifndef REGISTER
#define REGISTER 0

View File

@ -62,6 +62,4 @@
#endif /* !_SPLINT_ */
#include "lib/util/string_wrappers.h"
#endif

View File

@ -22,6 +22,7 @@
#include "../libcli/security/security.h"
#include "../librpc/gen_ndr/idmap.h"
#include "lib/gencache.h"
#include "lib/util/string_wrappers.h"
/**
* Find a sid2xid mapping

View File

@ -27,6 +27,7 @@
#include "libcli/security/privileges_private.h"
#include "../libcli/security/security.h"
#include "passdb.h"
#include "lib/util/string_wrappers.h"
#define PRIVPREFIX "PRIV_"

View File

@ -23,6 +23,7 @@
#include "includes.h"
#include "smbd/smbd.h"
#include "string_replace.h"
#include "lib/util/string_wrappers.h"
#define MAP_SIZE 0xFF
#define MAP_NUM 0x101 /* max unicode charval / MAP_SIZE */

View File

@ -23,6 +23,7 @@
#include "system/passwd.h"
#include "secrets.h"
#include "auth.h"
#include "lib/util/string_wrappers.h"
/* Max DNS name is 253 + '\0' */
#define MACHINE_NAME_SIZE 254

View File

@ -23,6 +23,7 @@
#include "system/passwd.h"
#include "../lib/util/memcache.h"
#include "../lib/util/util_pw.h"
#include "lib/util/string_wrappers.h"
/* internal functions */
static struct passwd *uname_string_combinations(char *s, TALLOC_CTX *mem_ctx,

View File

@ -37,6 +37,7 @@
#include "lib/util/util_process.h"
#include "lib/dbwrap/dbwrap_ctdb.h"
#include "lib/gencache.h"
#include "lib/util/string_wrappers.h"
#ifdef HAVE_SYS_PRCTL_H
#include <sys/prctl.h>

View File

@ -28,6 +28,7 @@
#include "../libcli/security/security.h"
#include "rpc_client/cli_pipe.h"
#include "rpc_client/cli_lsarpc.h"
#include "lib/util/string_wrappers.h"
/* These values discovered by inspection */

View File

@ -26,6 +26,7 @@
#include "../librpc/gen_ndr/ndr_security.h"
#include "../librpc/gen_ndr/netlogon.h"
#include "../libcli/security/security.h"
#include "lib/util/string_wrappers.h"
/*****************************************************************

View File

@ -21,6 +21,7 @@
#include "includes.h"
#include "lib/gencache.h"
#include "lib/util/string_wrappers.h"
/*
This is pretty much a complete rewrite of the earlier code. The main

View File

@ -29,6 +29,7 @@
#include "../libds/common/flag_mapping.h"
#include "passdb.h"
#include "lib/util/base64.h"
#include "lib/util/string_wrappers.h"
/****************************************************************
****************************************************************/

View File

@ -24,6 +24,7 @@
#include "gse_krb5.h"
#include "lib/param/loadparm.h"
#include "libads/kerberos_proto.h"
#include "lib/util/string_wrappers.h"
#ifdef HAVE_KRB5

View File

@ -42,6 +42,7 @@
#include "librpc/gen_ndr/ndr_ioctl.h"
#include "ntioctl.h"
#include "librpc/gen_ndr/ndr_quota.h"
#include "lib/util/string_wrappers.h"
struct smb2_hnd {
uint64_t fid_persistent;

View File

@ -28,6 +28,7 @@
#include "messages.h"
#include "librpc/gen_ndr/samr.h"
#include "../lib/util/pidfile.h"
#include "lib/util/string_wrappers.h"
/*
* cli_send_mailslot, send a mailslot for client code ...

View File

@ -21,6 +21,7 @@
#include "libsmb/libsmb.h"
#include "libsmb/clirap.h"
#include "../libcli/smb/smbXcli_base.h"
#include "lib/util/string_wrappers.h"
/*****************************************************************************
Convert a character pointer in a cli_call_api() response to a form we can use.

View File

@ -29,6 +29,7 @@
#include "trans2.h"
#include "../libcli/smb/smbXcli_base.h"
#include "cli_smb2_fnum.h"
#include "lib/util/string_wrappers.h"
#include <gnutls/gnutls.h>
#include <gnutls/crypto.h>

View File

@ -35,6 +35,7 @@
#include "../libcli/security/security.h"
#include "lib/util/tevent_ntstatus.h"
#include "lib/util/time_basic.h"
#include "lib/util/string_wrappers.h"
/*
* Routine to open a directory

View File

@ -30,6 +30,7 @@
#include "rpc_client/rpc_client.h"
#include "rpc_client/cli_lsarpc.h"
#include "../libcli/security/security.h"
#include "lib/util/string_wrappers.h"
/*
* Find an lsa pipe handle associated with a cli struct.

View File

@ -33,6 +33,7 @@
#include "lib/gencache.h"
#include "librpc/gen_ndr/dns.h"
#include "lib/util/util_net.h"
#include "lib/util/string_wrappers.h"
/* nmbd.c sets this to True. */
bool global_in_nmbd = False;

View File

@ -28,6 +28,7 @@
#include "ads.h"
#include "../librpc/gen_ndr/nbt.h"
#include "lib/param/loadparm.h"
#include "lib/util/string_wrappers.h"
/**********************************************************************
Is this our primary domain ?

View File

@ -21,6 +21,7 @@
#include "includes.h"
#include "libsmb/nmblib.h"
#include "lib/util/string_wrappers.h"
static const struct opcode_names {
const char *nmb_opcode_name;

View File

@ -25,6 +25,7 @@
#include "../libcli/security/dom_sid.h"
#include "passdb.h"
#include "lib/afs/afs_settoken.h"
#include "lib/util/string_wrappers.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_VFS

View File

@ -36,6 +36,7 @@
#include "librpc/gen_ndr/ndr_ioctl.h"
#include "offload_token.h"
#include "util_reparse.h"
#include "lib/util/string_wrappers.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_VFS

View File

@ -72,6 +72,7 @@
#include "libcli/security/sddl.h"
#include "passdb/machine_sid.h"
#include "lib/util/tevent_ntstatus.h"
#include "lib/util/string_wrappers.h"
static int vfs_full_audit_debug_level = DBGC_VFS;

View File

@ -23,6 +23,7 @@
#include "includes.h"
#include "nmbd/nmbd.h"
#include "../librpc/gen_ndr/svcctl.h"
#include "lib/util/string_wrappers.h"
extern uint16_t samba_nb_type; /* Samba's NetBIOS name type. */

View File

@ -28,6 +28,7 @@
#include "includes.h"
#include "nmbd/nmbd.h"
#include "lib/util/string_wrappers.h"
/* -------------------------------------------------------------------------- **
* Variables...

View File

@ -22,6 +22,7 @@
#include "includes.h"
#include "nmbd/nmbd.h"
#include "lib/util/string_wrappers.h"
/* This is our local master browser list database. */
extern struct browse_cache_record *lmb_browserlist;

View File

@ -22,6 +22,7 @@
#include "includes.h"
#include "nmbd/nmbd.h"
#include "lib/util/string_wrappers.h"
/* Election parameters. */
extern time_t StartupTime;

View File

@ -23,6 +23,7 @@
#include "includes.h"
#include "../librpc/gen_ndr/svcctl.h"
#include "nmbd/nmbd.h"
#include "lib/util/string_wrappers.h"
extern bool found_lm_clients;

View File

@ -22,6 +22,7 @@
#include "includes.h"
#include "nmbd/nmbd.h"
#include "lib/util/string_wrappers.h"
/* forward declarations */
static void wins_next_registration(struct response_record *rrec);

View File

@ -25,6 +25,7 @@
#include "system/select.h"
#include "libsmb/libsmb.h"
#include "libsmb/unexpected.h"
#include "lib/util/string_wrappers.h"
extern int ClientNMB;
extern int ClientDGRAM;

View File

@ -26,6 +26,7 @@
#include "includes.h"
#include "../librpc/gen_ndr/svcctl.h"
#include "nmbd/nmbd.h"
#include "lib/util/string_wrappers.h"
extern int updatecount;
extern bool found_lm_clients;

View File

@ -24,6 +24,7 @@
#include "system/filesys.h"
#include "../librpc/gen_ndr/svcctl.h"
#include "nmbd/nmbd.h"
#include "lib/util/string_wrappers.h"
int updatecount = 0;

View File

@ -32,6 +32,7 @@
#include "libsmb/libsmb.h"
#include "libsmb/clirap.h"
#include "../libcli/smb/smbXcli_base.h"
#include "lib/util/string_wrappers.h"
struct sync_record {
struct sync_record *next, *prev;

View File

@ -23,6 +23,7 @@
#include "includes.h"
#include "../librpc/gen_ndr/svcctl.h"
#include "nmbd/nmbd.h"
#include "lib/util/string_wrappers.h"
extern uint16_t samba_nb_type;

View File

@ -74,6 +74,7 @@
#include "source4/lib/tls/tls.h"
#include "libcli/auth/ntlm_check.h"
#include "lib/crypto/gnutls_helpers.h"
#include "lib/util/string_wrappers.h"
#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>

View File

@ -37,6 +37,7 @@
#include "lib/krb5_wrap/krb5_samba.h"
#include "lib/util/time_basic.h"
#include "../libds/common/flags.h"
#include "lib/util/string_wrappers.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_PASSDB

View File

@ -32,6 +32,7 @@
#include "util_tdb.h"
#include "auth/credentials/credentials.h"
#include "lib/param/param.h"
#include "lib/util/string_wrappers.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_PASSDB

View File

@ -37,6 +37,7 @@
#include "passdb/pdb_secrets.h"
#include "lib/util_sid_passdb.h"
#include "idmap_cache.h"
#include "lib/util/string_wrappers.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_PASSDB

View File

@ -55,6 +55,7 @@
#include "lib/param/loadparm.h"
#include "lib/util_sid_passdb.h"
#include "lib/util/smb_strtox.h"
#include "lib/util/string_wrappers.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_PASSDB

View File

@ -27,6 +27,7 @@
#include "../librpc/gen_ndr/samr.h"
#include "../libcli/security/security.h"
#include "passdb/pdb_smbpasswd.h"
#include "lib/util/string_wrappers.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_PASSDB

View File

@ -31,6 +31,7 @@
#include "util_tdb.h"
#include "passdb/pdb_tdb.h"
#include "lib/util/smb_strtox.h"
#include "lib/util/string_wrappers.h"
#if 0 /* when made a module use this */

View File

@ -27,6 +27,7 @@
#include "passdb.h"
#include "secrets.h"
#include "idmap.h"
#include "lib/util/string_wrappers.h"
#ifndef Py_TYPE /* Py_TYPE is only available on Python > 2.6 */
#define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)

View File

@ -19,6 +19,7 @@
#include "includes.h"
#include "printing.h"
#include "lib/util/string_wrappers.h"
static const char *Months[13] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "Err"};

View File

@ -26,6 +26,7 @@
#include "printing/notify.h"
#include "messages.h"
#include "util_tdb.h"
#include "lib/util/string_wrappers.h"
static TALLOC_CTX *send_ctx;

View File

@ -34,6 +34,7 @@
#include "messages.h"
#include "rpc_server/spoolss/srv_spoolss_nt.h"
#include "rpc_client/cli_winreg_spoolss.h"
#include "lib/util/string_wrappers.h"
/* Map generic permissions to printer object specific permissions */

View File

@ -27,6 +27,7 @@
#include "librpc/gen_ndr/ndr_security.h"
#include "libcli/security/security.h"
#include "util_tdb.h"
#include "lib/util/string_wrappers.h"
#define FORMS_PREFIX "FORMS/"
#define DRIVERS_PREFIX "DRIVERS/"

View File

@ -27,6 +27,7 @@
#include "printing/pcap.h"
#include "librpc/gen_ndr/ndr_printcap.h"
#include "lib/util/sys_rw.h"
#include "lib/util/string_wrappers.h"
#ifdef HAVE_CUPS
#include <cups/cups.h>

View File

@ -22,6 +22,7 @@
#include "includes.h"
#include "printing.h"
#include "printing/pcap.h"
#include "lib/util/string_wrappers.h"
#ifdef HAVE_IPRINT
#include <cups/cups.h>

View File

@ -37,6 +37,7 @@
#include "util_tdb.h"
#include "lib/param/loadparm.h"
#include "lib/util/sys_rw_data.h"
#include "lib/util/string_wrappers.h"
extern userdom_struct current_user_info;

View File

@ -24,6 +24,7 @@
#include "system/filesys.h"
#include "printing.h"
#include "util_tdb.h"
#include "lib/util/string_wrappers.h"
static struct tdb_print_db *print_db_head;

View File

@ -27,6 +27,7 @@
#include "dbwrap/dbwrap.h"
#include "dbwrap/dbwrap_rbt.h"
#include "../libcli/registry/util_reg.h"
#include "lib/util/string_wrappers.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_REGISTRY

View File

@ -63,6 +63,7 @@
#include "rpc_server/rpc_server.h"
#include "librpc/rpc/dcesrv_core.h"
#include "printing/nt_printing_migrate_internal.h"
#include "lib/util/string_wrappers.h"
/* macros stolen from s4 spoolss server */
#define SPOOLSS_BUFFER_UNION(fn,info,level) \

View File

@ -35,6 +35,7 @@
#include "libsmb/libsmb.h"
#include "popt_common_cmdline.h"
#include "lib/util/smb_strtox.h"
#include "lib/util/string_wrappers.h"
#define RPCCLIENT_PRINTERNAME(_printername, _cli, _arg) \
{ \

View File

@ -25,6 +25,7 @@
#include "../librpc/gen_ndr/ndr_srvsvc.h"
#include "../librpc/gen_ndr/ndr_srvsvc_c.h"
#include "../libcli/security/display_sec.h"
#include "lib/util/string_wrappers.h"
/* Display server query info */

View File

@ -26,6 +26,7 @@
#include "lib/util/bitmap.h"
#include "../lib/util/memcache.h"
#include "../librpc/gen_ndr/open_files.h"
#include "lib/util/string_wrappers.h"
/*
This module implements directory related functions for Samba.

View File

@ -27,6 +27,7 @@
#include "smbd/smbd.h"
#include "lib/param/loadparm.h"
#include "lib/util/tevent_ntstatus.h"
#include "lib/util/string_wrappers.h"
static NTSTATUS get_file_handle_for_metadata(connection_struct *conn,
const struct smb_filename *smb_fname,

View File

@ -43,6 +43,7 @@
#include "passdb/machine_sid.h"
#include "auth.h"
#include "rpc_server/rpc_ncacn_np.h"
#include "lib/util/string_wrappers.h"
#ifdef CHECK_TYPES
#undef CHECK_TYPES

View File

@ -27,6 +27,7 @@
#include "smbprofile.h"
#include "auth/gensec/gensec.h"
#include "../libcli/smb/smb_signing.h"
#include "lib/util/string_wrappers.h"
/*
* MS-CIFS, 2.2.4.52.2 SMB_COM_NEGOTIATE Response:

View File

@ -47,6 +47,7 @@
#include "librpc/gen_ndr/open_files.h"
#include "smb1_utils.h"
#include "libcli/smb/smb2_posix.h"
#include "lib/util/string_wrappers.h"
/****************************************************************************
Ensure we check the path in *exactly* the same way as W2K for a findfirst/findnext

View File

@ -33,6 +33,7 @@
#include "messages.h"
#include "lib/afs/afs_funcs.h"
#include "lib/util_path.h"
#include "lib/util/string_wrappers.h"
bool canonicalize_connect_path(connection_struct *conn)
{

View File

@ -33,6 +33,7 @@
#include "../libcli/security/security.h"
#include "auth/gensec/gensec.h"
#include "../libcli/smb/smb_signing.h"
#include "lib/util/string_wrappers.h"
/****************************************************************************
Add the standard 'Samba' signature to the end of the session setup.

View File

@ -21,6 +21,7 @@
#include "includes.h"
#include "smbd/smbd.h"
#include "smbd/globals.h"
#include "lib/util/string_wrappers.h"
/* Make sure we can't write a string past the end of the buffer */

View File

@ -44,6 +44,7 @@
#include "messages.h"
#include "smb1_utils.h"
#include "libcli/smb/smb2_posix.h"
#include "lib/util/string_wrappers.h"
#define DIR_ENTRY_SAFETY_MARGIN 4096

View File

@ -21,6 +21,7 @@
#include "libsmb/libsmb.h"
#include "system/filesys.h"
#include "locking/proto.h"
#include "lib/util/string_wrappers.h"
static fstring password;
static fstring username;

View File

@ -23,6 +23,7 @@
#include "libsmb/libsmb.h"
#include "libsmb/clirap.h"
#include "util_tdb.h"
#include "lib/util/string_wrappers.h"
extern int torture_numops;

View File

@ -23,6 +23,7 @@
#include "libsmb/libsmb.h"
#include "libsmb/nmblib.h"
#include "../libcli/smb/smbXcli_base.h"
#include "lib/util/string_wrappers.h"
static fstring password;
static fstring username;

View File

@ -50,6 +50,7 @@
#include "lib/util/asn1.h"
#include "lib/param/param.h"
#include "auth/gensec/gensec.h"
#include "lib/util/string_wrappers.h"
#include <gnutls/gnutls.h>
#include <gnutls/crypto.h>

View File

@ -23,6 +23,7 @@
#include "../libcli/security/security.h"
#include "libsmb/libsmb.h"
#include "libsmb/clirap.h"
#include "lib/util/string_wrappers.h"
bool torture_utable(int dummy)
{

View File

@ -26,6 +26,7 @@
#include "messages.h"
#include "conn_tdb.h"
#include "util_tdb.h"
#include "lib/util/string_wrappers.h"
struct connections_forall_state {
struct db_context *session_by_pid;

View File

@ -31,6 +31,7 @@
#include "registry/reg_backend_db.h"
#include "../libcli/registry/util_reg.h"
#include "cmdline_contexts.h"
#include "lib/util/string_wrappers.h"
extern int optind;
extern char *optarg;

View File

@ -41,6 +41,7 @@
#include "lib/param/loadparm.h"
#include "utils/net_dns.h"
#include "auth/kerberos/pac_utils.h"
#include "lib/util/string_wrappers.h"
#ifdef HAVE_JANSSON
#include <jansson.h>

View File

@ -26,6 +26,7 @@
#include "utils/net.h"
#include "../libcli/security/security.h"
#include "passdb.h"
#include "lib/util/string_wrappers.h"
/*********************************************************
Figure out if the input was an NT group or a SID string.

View File

@ -48,6 +48,7 @@
#include "passdb.h"
#include "../libcli/smb/smbXcli_base.h"
#include "libsmb/dsgetdcname.h"
#include "lib/util/string_wrappers.h"
static int net_mode_share;
static NTSTATUS sync_files(struct copy_clistate *cp_clistate, const char *mask);

View File

@ -32,6 +32,7 @@
#include "../libcli/smb/smbXcli_base.h"
#include "auth/gensec/gensec.h"
#include "auth/credentials/credentials.h"
#include "lib/util/string_wrappers.h"
/* support itanium as well */
static const struct print_architecture_table_node archi_table[]= {

View File

@ -24,6 +24,7 @@
#include "rpc_client/cli_lsarpc.h"
#include "rpc_client/init_lsa.h"
#include "../libcli/security/security.h"
#include "lib/util/string_wrappers.h"
/********************************************************************
********************************************************************/

View File

@ -21,6 +21,7 @@
#include "rpc_client/rpc_client.h"
#include "../librpc/gen_ndr/ndr_svcctl.h"
#include "../librpc/gen_ndr/ndr_svcctl_c.h"
#include "lib/util/string_wrappers.h"
struct svc_state_msg {
uint32_t flag;

View File

@ -32,6 +32,7 @@
#include "secrets.h"
#include "idmap.h"
#include "lib/util/smb_strtox.h"
#include "lib/util/string_wrappers.h"
/*
* Set a user's data

View File

@ -23,6 +23,7 @@
#include "system/filesys.h"
#include "utils/net.h"
#include "../libcli/security/security.h"
#include "lib/util/string_wrappers.h"
struct {
const char *us_errstr;

View File

@ -23,6 +23,7 @@
#include "popt_common.h"
#include "libsmb/nmblib.h"
#include "libsmb/namequery.h"
#include "lib/util/string_wrappers.h"
static bool give_flags = false;
static bool use_bcast = true;

View File

@ -48,6 +48,7 @@
#include "lib/util/base64.h"
#include "cmdline_contexts.h"
#include "lib/util/tevent_ntstatus.h"
#include "lib/util/string_wrappers.h"
#include <gnutls/gnutls.h>
#include <gnutls/crypto.h>

View File

@ -29,6 +29,7 @@ struct cli_state;
#include "passdb/machine_sid.h"
#include "util_sd.h"
#include "cmdline_contexts.h"
#include "lib/util/string_wrappers.h"
static TALLOC_CTX *ctx;

View File

@ -36,6 +36,7 @@
#include "../lib/util/pidfile.h"
#include "serverid.h"
#include "cmdline_contexts.h"
#include "lib/util/string_wrappers.h"
#ifdef HAVE_LIBUNWIND_H
#include <libunwind.h>

View File

@ -25,6 +25,7 @@
#include "passdb.h"
#include "cmdline_contexts.h"
#include "passwd_proto.h"
#include "lib/util/string_wrappers.h"
/*
* Next two lines needed for SunOS and don't

View File

@ -50,6 +50,7 @@
#include "smbd/notifyd/notifyd.h"
#include "cmdline_contexts.h"
#include "locking/leases_db.h"
#include "lib/util/string_wrappers.h"
#define SMB_MAXPIDS 2048
static uid_t Ucrit_uid = 0; /* added by OH */

View File

@ -80,6 +80,7 @@
#include "../libcli/security/dom_sid.h"
#include "libsmb/samlogon_cache.h"
#include "passdb/machine_sid.h"
#include "lib/util/string_wrappers.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_IDMAP

View File

@ -25,6 +25,7 @@
#include "idmap_autorid_tdb.h"
#include "../libcli/security/dom_sid.h"
#include "lib/util/string_wrappers.h"
/**
* Build the database keystring for getting a range

View File

@ -33,6 +33,7 @@
#include "dbwrap/dbwrap_open.h"
#include "../libcli/security/security.h"
#include "util_tdb.h"
#include "lib/util/string_wrappers.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_IDMAP

View File

@ -21,6 +21,7 @@
#include "winbindd.h"
#include "librpc/gen_ndr/ndr_winbind_c.h"
#include "../libcli/security/security.h"
#include "lib/util/string_wrappers.h"
struct wb_getpwsid_state {
struct tevent_context *ev;

View File

@ -36,6 +36,7 @@
#include "util_tdb.h"
#include "libsmb/samlogon_cache.h"
#include "lib/namemap_cache.h"
#include "lib/util/string_wrappers.h"
#include "lib/crypto/gnutls_helpers.h"
#include <gnutls/crypto.h>

View File

@ -85,6 +85,7 @@
#include "auth/credentials/credentials.h"
#include "lib/param/param.h"
#include "lib/gencache.h"
#include "lib/util/string_wrappers.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_WINBIND

View File

@ -19,6 +19,7 @@
#include "includes.h"
#include "winbindd.h"
#include "lib/util/string_wrappers.h"
struct winbindd_domain_info_state {
struct winbindd_domain *domain;

View File

@ -20,6 +20,7 @@
#include "includes.h"
#include "winbindd.h"
#include "librpc/gen_ndr/ndr_winbind_c.h"
#include "lib/util/string_wrappers.h"
struct winbindd_dsgetdcname_state {
struct GUID guid;

Some files were not shown because too many files have changed in this diff Show More