Searched refs:server_conf (Results 1 – 10 of 10) 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()349 for (i = 0; i < ARRAY_SIZE(server_conf.conf); i++) { in server_conf_free()350 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_SMB2_ENCRYPTION || in init_smb3_0_server()232 (!(server_conf.flags & KSMBD_GLOBAL_FLAG_SMB2_ENCRYPTION_OFF) && in init_smb3_0_server()236 if (server_conf.flags & KSMBD_GLOBAL_FLAG_SMB3_MULTICHANNEL) in init_smb3_0_server()253 if (server_conf.flags & KSMBD_GLOBAL_FLAG_SMB2_LEASES) in init_smb3_02_server()257 if (server_conf.flags & KSMBD_GLOBAL_FLAG_SMB2_ENCRYPTION || in init_smb3_02_server()258 (!(server_conf.flags & KSMBD_GLOBAL_FLAG_SMB2_ENCRYPTION_OFF) && in init_smb3_02_server()262 if (server_conf.flags & KSMBD_GLOBAL_FLAG_SMB3_MULTICHANNEL) in init_smb3_02_server()[all …]
238 if (server_conf.ipc_timeout) in ipc_update_last_active()239 server_conf.ipc_last_active = jiffies; in ipc_update_last_active()308 server_conf.flags = req->flags; in ipc_server_config_on_startup()309 server_conf.signing = req->signing; in ipc_server_config_on_startup()310 server_conf.tcp_port = req->tcp_port; in ipc_server_config_on_startup()311 server_conf.ipc_timeout = req->ipc_timeout * HZ; in ipc_server_config_on_startup()312 server_conf.deadtime = req->deadtime * SMB_ECHO_INTERVAL; in ipc_server_config_on_startup()313 server_conf.share_fake_fscaps = req->share_fake_fscaps; in ipc_server_config_on_startup()328 server_conf.max_connections = req->max_connections; in ipc_server_config_on_startup()345 server_conf.min_protocol = ret; in ipc_server_config_on_startup()[all …]
50 extern struct ksmbd_server_config server_conf;62 return READ_ONCE(server_conf.state) == SERVER_STATE_RUNNING; in ksmbd_server_running()67 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()397 if (server_conf.max_connections) in ksmbd_tcp_disconnect()445 sin.sin_port = htons(server_conf.tcp_port); in create_socket()450 sin6.sin6_port = htons(server_conf.tcp_port); in create_socket()
813 if (!(server_conf.flags & KSMBD_GLOBAL_FLAG_DURABLE_HANDLE)) in ksmbd_launch_ksmbd_durable_scavenger()824 server_conf.dh_task = kthread_run(ksmbd_durable_scavenger, in ksmbd_launch_ksmbd_durable_scavenger()826 if (IS_ERR(server_conf.dh_task)) in ksmbd_launch_ksmbd_durable_scavenger()828 PTR_ERR(server_conf.dh_task)); in ksmbd_launch_ksmbd_durable_scavenger()834 if (!(server_conf.flags & KSMBD_GLOBAL_FLAG_DURABLE_HANDLE)) in ksmbd_stop_durable_scavenger()847 kthread_stop(server_conf.dh_task); in ksmbd_stop_durable_scavenger()
287 if (server_conf.deadtime > 0 && in ksmbd_conn_alive()288 time_after(jiffies, conn->last_active + server_conf.deadtime)) { in ksmbd_conn_alive()290 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()754 if (S_ISREG(stat->mode) && (server_conf.share_fake_fscaps & in smb2_get_dos_mode()918 if (server_conf.flags & KSMBD_GLOBAL_FLAG_SMB2_ENCRYPTION_OFF) in decode_encrypt_ctxt()1236 if ((server_conf.signing == KSMBD_CONFIG_OPT_AUTO || in smb2_handle_negotiate()1237 server_conf.signing == KSMBD_CONFIG_OPT_DISABLED) && in smb2_handle_negotiate()1240 else if (server_conf.signing == KSMBD_CONFIG_OPT_MANDATORY) { in smb2_handle_negotiate()1241 server_conf.enforced_signing = true; in smb2_handle_negotiate()1520 (conn->sign || server_conf.enforced_signing)) || in ntlm_authenticate()1533 if (server_conf.flags & KSMBD_GLOBAL_FLAG_SMB2_ENCRYPTION) in ntlm_authenticate()1607 if ((conn->sign || server_conf.enforced_signing) || in krb5_authenticate()[all …]