Searched refs:server_conf (Results 1 – 9 of 9) sorted by relevance
27 struct ksmbd_server_config server_conf; variable43 if (idx >= ARRAY_SIZE(server_conf.conf)) in ___server_conf_set()49 kfree(server_conf.conf[idx]); in ___server_conf_set()50 server_conf.conf[idx] = kstrdup(val, GFP_KERNEL); in ___server_conf_set()51 if (!server_conf.conf[idx]) in ___server_conf_set()73 return server_conf.conf[SERVER_CONF_NETBIOS_NAME]; in ksmbd_netbios_name()78 return server_conf.conf[SERVER_CONF_SERVER_STRING]; in ksmbd_server_string()83 return server_conf.conf[SERVER_CONF_WORK_GROUP]; in ksmbd_work_group()346 for (i = 0; i < ARRAY_SIZE(server_conf.conf); i++) { in server_conf_free()347 kfree(server_conf.conf[i]); in server_conf_free()[all …]
206 if (server_conf.flags & KSMBD_GLOBAL_FLAG_SMB2_LEASES) in init_smb2_1_server()223 if (server_conf.flags & KSMBD_GLOBAL_FLAG_SMB2_LEASES) in init_smb3_0_server()227 if (server_conf.flags & KSMBD_GLOBAL_FLAG_SMB2_ENCRYPTION && in init_smb3_0_server()231 if (server_conf.flags & KSMBD_GLOBAL_FLAG_SMB3_MULTICHANNEL) in init_smb3_0_server()248 if (server_conf.flags & KSMBD_GLOBAL_FLAG_SMB2_LEASES) in init_smb3_02_server()252 if (server_conf.flags & KSMBD_GLOBAL_FLAG_SMB2_ENCRYPTION || in init_smb3_02_server()253 (!(server_conf.flags & KSMBD_GLOBAL_FLAG_SMB2_ENCRYPTION_OFF) && in init_smb3_02_server()257 if (server_conf.flags & KSMBD_GLOBAL_FLAG_SMB3_MULTICHANNEL) in init_smb3_02_server()274 if (server_conf.flags & KSMBD_GLOBAL_FLAG_SMB2_LEASES) in init_smb3_11_server()278 if (server_conf.flags & KSMBD_GLOBAL_FLAG_SMB2_ENCRYPTION || in init_smb3_11_server()[all …]
223 if (server_conf.ipc_timeout) in ipc_update_last_active()224 server_conf.ipc_last_active = jiffies; in ipc_update_last_active()292 server_conf.flags = req->flags; in ipc_server_config_on_startup()293 server_conf.signing = req->signing; in ipc_server_config_on_startup()294 server_conf.tcp_port = req->tcp_port; in ipc_server_config_on_startup()295 server_conf.ipc_timeout = req->ipc_timeout * HZ; in ipc_server_config_on_startup()296 server_conf.deadtime = req->deadtime * SMB_ECHO_INTERVAL; in ipc_server_config_on_startup()297 server_conf.share_fake_fscaps = req->share_fake_fscaps; in ipc_server_config_on_startup()312 server_conf.max_connections = req->max_connections; in ipc_server_config_on_startup()329 server_conf.min_protocol = ret; in ipc_server_config_on_startup()[all …]
49 extern struct ksmbd_server_config server_conf;61 return READ_ONCE(server_conf.state) == SERVER_STATE_RUNNING; in ksmbd_server_running()66 return READ_ONCE(server_conf.state) < SERVER_STATE_RESETTING; in ksmbd_server_configurable()
247 if (server_conf.max_connections && in ksmbd_kthread_fn()248 atomic_inc_return(&active_num_conn) >= server_conf.max_connections) { in ksmbd_kthread_fn()396 if (server_conf.max_connections) in ksmbd_tcp_disconnect()443 sin.sin_port = htons(server_conf.tcp_port); in create_socket()448 sin6.sin6_port = htons(server_conf.tcp_port); in create_socket()
252 if (server_conf.deadtime > 0 && in ksmbd_conn_alive()253 time_after(jiffies, conn->last_active + server_conf.deadtime)) { in ksmbd_conn_alive()255 server_conf.deadtime / SMB_ECHO_INTERVAL); in ksmbd_conn_alive()
183 (server_conf.min_protocol >= SMB21_PROT || in supported_protocol()184 server_conf.max_protocol <= SMB311_PROT)) in supported_protocol()187 return (server_conf.min_protocol <= idx && in supported_protocol()188 idx <= server_conf.max_protocol); in supported_protocol()
225 smb_copy_sid(ssid, &server_conf.domain_sid); in id_to_sid()755 sid = &server_conf.domain_sid; in set_mode_dacl()1457 memcpy(&server_conf.domain_sid, &domain, sizeof(struct smb_sid)); in ksmbd_init_domain()1459 server_conf.domain_sid.sub_auth[i + 1] = cpu_to_le32(sub_auth[i]); in ksmbd_init_domain()
295 if (server_conf.signing == KSMBD_CONFIG_OPT_MANDATORY) in init_smb2_neg_rsp()766 if (S_ISREG(stat->mode) && (server_conf.share_fake_fscaps & in smb2_get_dos_mode()930 if (server_conf.flags & KSMBD_GLOBAL_FLAG_SMB2_ENCRYPTION_OFF) in decode_encrypt_ctxt()1248 if ((server_conf.signing == KSMBD_CONFIG_OPT_AUTO || in smb2_handle_negotiate()1249 server_conf.signing == KSMBD_CONFIG_OPT_DISABLED) && in smb2_handle_negotiate()1252 else if (server_conf.signing == KSMBD_CONFIG_OPT_MANDATORY) { in smb2_handle_negotiate()1253 server_conf.enforced_signing = true; in smb2_handle_negotiate()1535 (conn->sign || server_conf.enforced_signing)) || in ntlm_authenticate()1548 if (server_conf.flags & KSMBD_GLOBAL_FLAG_SMB2_ENCRYPTION) in ntlm_authenticate()1622 if ((conn->sign || server_conf.enforced_signing) || in krb5_authenticate()[all …]