mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
52dd57d4b3
If a client disconnected all its interfaces and reconnects when
the come back, it will likely start from any ip address returned
dns, which means it can try to connect to a different ctdb node.
The old node may not have noticed the disconnect and still holds
the client_guid based smbd.
Up unil now the new node returned NT_STATUS_NOT_SUPPORTED to
the SMB2 Negotiate request, as messaging_send_iov[_from]() will
return -1/ENOSYS if a file descriptor os passed to a process on
a different node.
Now we tell the other node to teardown all client connections
belonging to the client-guid.
Note that this is not authenticated, but if an attacker can
capture the client-guid, he can also inject TCP resets anyway,
to get the same effect.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15159
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Sep 2 20:59:15 UTC 2022 on sn-devel-184
(cherry picked from commit
|
||
---|---|---|
.. | ||
atsvc.idl | ||
audiosrv.idl | ||
auth.idl | ||
backupkey.idl | ||
bkupblobs.idl | ||
browser.idl | ||
cab.idl | ||
clusapi.idl | ||
dbgidl.idl | ||
dcerpc.idl | ||
dcom.idl | ||
dfs.idl | ||
dfsblobs.idl | ||
dns.idl | ||
dnsp.idl | ||
dnsserver.idl | ||
drsblobs.idl | ||
drsuapi.idl | ||
dsbackup.idl | ||
dssetup.idl | ||
echo.idl | ||
efs.idl | ||
epmapper.idl | ||
eventlog6.idl | ||
eventlog.idl | ||
file_id.idl | ||
frsapi.idl | ||
frsrpc.idl | ||
frstrans.idl | ||
fscc.idl | ||
fsrvp_state.idl | ||
fsrvp.idl | ||
IDL_LICENSE.txt | ||
idl_types.h | ||
idmap.idl | ||
initshutdown.idl | ||
ioctl.idl | ||
keysvc.idl | ||
krb5ccache.idl | ||
krb5pac.idl | ||
lsa.idl | ||
mdssvc.idl | ||
messaging.idl | ||
mgmt.idl | ||
misc.idl | ||
msgsvc.idl | ||
named_pipe_auth.idl | ||
nbt.idl | ||
negoex.idl | ||
netlogon.idl | ||
nfs4acl.idl | ||
notify.idl | ||
ntlmssp.idl | ||
ntprinting.idl | ||
ntsvcs.idl | ||
ODJ.idl | ||
orpc.idl | ||
oxidresolver.idl | ||
policyagent.idl | ||
preg.idl | ||
printcap.idl | ||
quota.idl | ||
rap.idl | ||
remact.idl | ||
rot.idl | ||
samr.idl | ||
scerpc.idl | ||
schannel.idl | ||
security.cnf | ||
security.idl | ||
server_id.idl | ||
smb2_lease_struct.idl | ||
smb_acl.idl | ||
spoolss.idl | ||
srvsvc.idl | ||
svcctl.idl | ||
trkwks.idl | ||
unixinfo.idl | ||
w32time.idl | ||
winbind.idl | ||
windows_event_ids.idl | ||
winreg.cnf | ||
winreg.idl | ||
winspool.idl | ||
winstation.idl | ||
witness.idl | ||
wkssvc.idl | ||
wmi.idl | ||
wscript_build | ||
wzcsvc.idl | ||
xattr.idl |