[PATCHES BUG 13407] rpc_server: Fix NetSessEnum with stale sessions

Christof Schmitt cs at samba.org
Wed Apr 25 20:19:33 UTC 2018


On Wed, Apr 25, 2018 at 09:25:46PM +0200, Volker Lendecke via samba-technical wrote:
> On Wed, Apr 25, 2018 at 10:21:31AM -0700, Christof Schmitt via samba-technical wrote:
> > The problem here is that sessions entries in smbXsrv_global_session do
> > not expire. smbstatus -p filters out the stale sessions with a process
> > check. This is missing for NetSessEnum; adding this seems to be the
> > easiest fix, assuming that this does not happen often.
> > 
> > The other approach would be to run a clean up on the database, e.g. in
> > cleanupd after a process crash, but that would require traversing the
> > database and checking all processes.
> 
> What about sending the required info to cleanupd when you come across
> it in gather_sessioninfo?

Do you mean sending a messageg to cleanupd with the key, in case the
process no longer exists? And then cleanupd will delete the entry? I can
look into adding that.

Christof



More information about the samba-technical mailing list