5 this is a set of temporary stub functions used during the core smbd rewrite.
6 This file will need to go away before the rewrite is complete
9 BOOL set_current_service(void *conn, BOOL x)
12 void change_to_root_user(void)
15 BOOL pcap_printername_ok(const char *service, const char *foo)
18 BOOL share_access_check(struct smbsrv_request *req, struct smbsrv_tcon *tcon, int snum, uint32_t desired_access)
22 * initialize an smb process
24 void smbd_process_init(void)
28 mem_ctx = talloc_init("smbd_process_init talloc");
30 DEBUG(0,("smbd_process_init: ERROR: No memory\n"));
34 /* possibly reload the services file. */
35 reload_services(NULL, True);
38 if (sys_chroot(lp_rootdir()) == 0)
39 DEBUG(2,("Changed root to %s\n", lp_rootdir()));
42 /* Start old-style secrets subsystem */
44 talloc_destroy(mem_ctx);
47 void init_subsystems(void)
49 /* Setup the PROCESS_MODEL subsystem */
50 if (!process_model_init())
53 /* Setup the SERVER_SERVICE subsystem */
54 if (!server_service_init())
57 /* Setup the AUTH subsystem */
61 /* Setup the NTVFS subsystem */
65 /* Setup the DCERPC subsystem */
66 if (!subsystem_dcerpc_init())
71 /****************************************************************************
72 Reload the services file.
73 **************************************************************************/
74 BOOL reload_services(struct smbsrv_connection *smb, BOOL test)
80 pstrcpy(fname,lp_configfile());
81 if (file_exist(fname, NULL) &&
82 !strcsequal(fname, dyn_CONFIGFILE)) {
83 pstrcpy(dyn_CONFIGFILE, fname);
90 if (test && !lp_file_list_changed())
94 lp_killunused(smb, conn_snum_used);
97 ret = lp_load(dyn_CONFIGFILE, False, False, True);
99 /* perhaps the config filename is now set */
101 reload_services(smb, True);
107 /* this forces service parameters to be flushed */
108 set_current_service(NULL,True);