<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/source3/rpc_server, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/'/>
<entry>
<title>s3:srvsvc: guard lp_killservice() in _srvsvc_NetShareDel() with connections_snum_used check</title>
<updated>2026-04-14T23:04:37+00:00</updated>
<author>
<name>Jeremy Allison</name>
<email>jallison@ciq.com</email>
</author>
<published>2026-04-10T21:20:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=d1d0ce7f498c4a73f1cbf941681c6247db44ac47'/>
<id>d1d0ce7f498c4a73f1cbf941681c6247db44ac47</id>
<content type='text'>
_srvsvc_NetShareDel() unconditionally calls lp_killservice() to
destroy the service after deleting a share via RPC. If any active
connection is still using this service number, the destroyed service
can cause a NULL pointer dereference on subsequent requests.

Guard the call with connections_snum_used() so the service is only
freed when no connections are using it. The periodic
load_usershare_shares() sweep will clean up the stale service once
all connections have disconnected.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14978

Co-Authored-By: Claude Opus 4.6 (1M context) &lt;noreply@anthropic.com&gt;

Signed-off-by: Jeremy Allison &lt;jra@samba.org&gt;
Reviewed-by: David Mulder &lt;dmulder@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
_srvsvc_NetShareDel() unconditionally calls lp_killservice() to
destroy the service after deleting a share via RPC. If any active
connection is still using this service number, the destroyed service
can cause a NULL pointer dereference on subsequent requests.

Guard the call with connections_snum_used() so the service is only
freed when no connections are using it. The periodic
load_usershare_shares() sweep will clean up the stale service once
all connections have disconnected.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14978

Co-Authored-By: Claude Opus 4.6 (1M context) &lt;noreply@anthropic.com&gt;

Signed-off-by: Jeremy Allison &lt;jra@samba.org&gt;
Reviewed-by: David Mulder &lt;dmulder@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s3/rpc_server: Add worker status smbcontrol message support</title>
<updated>2026-04-14T12:12:07+00:00</updated>
<author>
<name>Noel Power</name>
<email>noel.power@suse.com</email>
</author>
<published>2026-02-11T08:45:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=f0455c7430ffca4f7a94bbd8f9e5a04fa98905ee'/>
<id>f0455c7430ffca4f7a94bbd8f9e5a04fa98905ee</id>
<content type='text'>
Add information about the number of connections a rpc_worker
process is handling and when each connection was initiated.

command
  smbcontrol 55063 rpc-dump-worker-status

will output data like below:

  rpcd_spoolss pid 55063:
      num connections = 2
      num_association_groups = 2
      last client connection 2026/03/18 06:51:04.482192
      last client disconnection 2026/03/18 06:51:00.304951
   active connections:
      [1] endpoint=ncacn_np:[\pipe\spoolss] client addr=192.168.32.175 server=priu0002 connected at 2026/03/18 06:51:04.482192
      [2] endpoint=ncacn_np:[\pipe\spoolss] client addr=192.168.33.232 server=priu0002 connected at 2026/03/18 06:47:08.466157

Signed-off-by: Noel Power &lt;noel.power@suse.com&gt;
Reviewed-by: Volker Lendecke &lt;vl@samba.org&gt;

Autobuild-User(master): Noel Power &lt;npower@samba.org&gt;
Autobuild-Date(master): Tue Apr 14 12:12:07 UTC 2026 on atb-devel-224
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add information about the number of connections a rpc_worker
process is handling and when each connection was initiated.

command
  smbcontrol 55063 rpc-dump-worker-status

will output data like below:

  rpcd_spoolss pid 55063:
      num connections = 2
      num_association_groups = 2
      last client connection 2026/03/18 06:51:04.482192
      last client disconnection 2026/03/18 06:51:00.304951
   active connections:
      [1] endpoint=ncacn_np:[\pipe\spoolss] client addr=192.168.32.175 server=priu0002 connected at 2026/03/18 06:51:04.482192
      [2] endpoint=ncacn_np:[\pipe\spoolss] client addr=192.168.33.232 server=priu0002 connected at 2026/03/18 06:47:08.466157

Signed-off-by: Noel Power &lt;noel.power@suse.com&gt;
Reviewed-by: Volker Lendecke &lt;vl@samba.org&gt;

Autobuild-User(master): Noel Power &lt;npower@samba.org&gt;
Autobuild-Date(master): Tue Apr 14 12:12:07 UTC 2026 on atb-devel-224
</pre>
</div>
</content>
</entry>
<entry>
<title>rpc_server: Only allocate fsp when counting file locks</title>
<updated>2026-04-14T10:02:29+00:00</updated>
<author>
<name>Shwetha Acharya</name>
<email>Shwetha.K.Acharya@ibm.com</email>
</author>
<published>2026-03-05T12:01:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=69124348bd47af26e6782a0f929d5ae43fee7894'/>
<id>69124348bd47af26e6782a0f929d5ae43fee7894</id>
<content type='text'>
Avoids creating fsp, which is not needed unless we
are going to count the brlocks.

Also uses early continue and removes num_locks variable
by assigning the result directly.

Signed-off-by: Shwetha Acharya &lt;Shwetha.K.Acharya@ibm.com&gt;
Reviewed-by: Xavi Hernandez &lt;xhernandez@redhat.com&gt;
Reviewed-by: Shweta Sodani &lt;ssodani@redhat.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;

Autobuild-User(master): Anoop C S &lt;anoopcs@samba.org&gt;
Autobuild-Date(master): Tue Apr 14 10:02:29 UTC 2026 on atb-devel-224
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Avoids creating fsp, which is not needed unless we
are going to count the brlocks.

Also uses early continue and removes num_locks variable
by assigning the result directly.

Signed-off-by: Shwetha Acharya &lt;Shwetha.K.Acharya@ibm.com&gt;
Reviewed-by: Xavi Hernandez &lt;xhernandez@redhat.com&gt;
Reviewed-by: Shweta Sodani &lt;ssodani@redhat.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;

Autobuild-User(master): Anoop C S &lt;anoopcs@samba.org&gt;
Autobuild-Date(master): Tue Apr 14 10:02:29 UTC 2026 on atb-devel-224
</pre>
</div>
</content>
</entry>
<entry>
<title>rpc_server: Optionally skip "process_exists" when enumerating files</title>
<updated>2026-04-14T08:57:30+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2018-05-02T14:20:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=886abd249be50ebd6f2205097e9bf107a8cef573'/>
<id>886abd249be50ebd6f2205097e9bf107a8cef573</id>
<content type='text'>
If you want to skip the potentially expensive process_exists calls when
enumerating millions of files, set

srvsvc : file enum check stale = false

in your [global] section of your smb.conf

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Xavi Hernandez &lt;xhernandez@redhat.com&gt;
Reviewed-by: Shweta Sodani &lt;ssodani@redhat.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If you want to skip the potentially expensive process_exists calls when
enumerating millions of files, set

srvsvc : file enum check stale = false

in your [global] section of your smb.conf

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Xavi Hernandez &lt;xhernandez@redhat.com&gt;
Reviewed-by: Shweta Sodani &lt;ssodani@redhat.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>rpc_server: Optionally skip counting byte range locks when enumerating files</title>
<updated>2026-04-14T08:57:30+00:00</updated>
<author>
<name>Ralph Wuerthner</name>
<email>ralph.wuerthner@de.ibm.com</email>
</author>
<published>2018-05-08T08:52:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=9e5d3dea6a64ba2d1effd8840b7acb67340127c5'/>
<id>9e5d3dea6a64ba2d1effd8840b7acb67340127c5</id>
<content type='text'>
Signed-off-by: Ralph Wuerthner &lt;ralph.wuerthner@de.ibm.com&gt;
Reviewed-by: Xavi Hernandez &lt;xhernandez@redhat.com&gt;
Reviewed-by: Shweta Sodani &lt;ssodani@redhat.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Ralph Wuerthner &lt;ralph.wuerthner@de.ibm.com&gt;
Reviewed-by: Xavi Hernandez &lt;xhernandez@redhat.com&gt;
Reviewed-by: Shweta Sodani &lt;ssodani@redhat.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>s3:rpc_server: make epmdb.tdb non readable for others</title>
<updated>2026-04-07T15:09:38+00:00</updated>
<author>
<name>Shwetha Acharya</name>
<email>Shwetha.K.Acharya@ibm.com</email>
</author>
<published>2026-04-01T08:27:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=68e9737729125f913a1aa53cc6b80b0dfc02c77b'/>
<id>68e9737729125f913a1aa53cc6b80b0dfc02c77b</id>
<content type='text'>
Signed-off-by: Shwetha Acharya &lt;Shwetha.K.Acharya@ibm.com&gt;
Reviewed-by: Xavi Hernandez &lt;xhernandez@redhat.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Shwetha Acharya &lt;Shwetha.K.Acharya@ibm.com&gt;
Reviewed-by: Xavi Hernandez &lt;xhernandez@redhat.com&gt;
Reviewed-by: Martin Schwenke &lt;martin@meltin.net&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>rpc: Don't offer spoolss RPC with "disable spoolss = yes"</title>
<updated>2026-03-13T09:00:05+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2026-03-10T09:17:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=8497fb05d8d9c082b7ba318844970f0b3227aff9'/>
<id>8497fb05d8d9c082b7ba318844970f0b3227aff9</id>
<content type='text'>
Bug: https://bugzilla.samba.org/show_bug.cgi?id=16019
Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Gary Lockyer &lt;gary@catalyst.net.nz&gt;

Autobuild-User(master): Volker Lendecke &lt;vl@samba.org&gt;
Autobuild-Date(master): Fri Mar 13 09:00:05 UTC 2026 on atb-devel-224
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: https://bugzilla.samba.org/show_bug.cgi?id=16019
Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Gary Lockyer &lt;gary@catalyst.net.nz&gt;

Autobuild-User(master): Volker Lendecke &lt;vl@samba.org&gt;
Autobuild-Date(master): Fri Mar 13 09:00:05 UTC 2026 on atb-devel-224
</pre>
</div>
</content>
</entry>
<entry>
<title>fss_srv: Use create_conn_struct_chdir()</title>
<updated>2026-03-01T20:19:35+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2026-02-16T14:12:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=6e516572e18137fe73d56692000cfea55ed1bc49'/>
<id>6e516572e18137fe73d56692000cfea55ed1bc49</id>
<content type='text'>
This is the last user of the non-chdir create_conn_struct_tos(). While
I don't fully understand the code, this is an RPC server that *should*
not care about the current working directory. There are some tests for
this in the rpc.fsrvp group of tests, so I don't think this breaks too
badly.

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is the last user of the non-chdir create_conn_struct_tos(). While
I don't fully understand the code, this is an RPC server that *should*
not care about the current working directory. There are some tests for
this in the rpc.fsrvp group of tests, so I don't think this breaks too
badly.

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>dfssrv: Call create_conn_struct_chdir()</title>
<updated>2026-03-01T20:19:35+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2026-02-16T13:11:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=adae659a40004b12c9ae3716eaa30f7986c9bd7f'/>
<id>adae659a40004b12c9ae3716eaa30f7986c9bd7f</id>
<content type='text'>
This is inside an rpc server, where we don't depend on an implicit
current working directory. We don't need the "jump back to old cwd"
that create_conn_struct_tos_cwd() provided.

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is inside an rpc server, where we don't depend on an implicit
current working directory. We don't need the "jump back to old cwd"
that create_conn_struct_tos_cwd() provided.

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>srvsvc: Call create_conn_struct_chdir()</title>
<updated>2026-03-01T20:19:35+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2026-02-16T13:03:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=972a2e272807943b97cde006a7f7606ec8f19695'/>
<id>972a2e272807943b97cde006a7f7606ec8f19695</id>
<content type='text'>
This is inside an rpc server, where we don't depend on an implicit
current working directory. We don't need the "jump back to old cwd"
that create_conn_struct_tos_cwd() provided.

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is inside an rpc server, where we don't depend on an implicit
current working directory. We don't need the "jump back to old cwd"
that create_conn_struct_tos_cwd() provided.

Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Anoop C S &lt;anoopcs@samba.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
