[Samba] sockets in /var/lib
abartlet at samba.org
Tue Sep 12 09:18:49 UTC 2023
On Tue, 2023-09-12 at 11:49 +0300, Michael Tokarev via samba wrote:
> 12.09.2023 11:40, Andrew Bartlett via samba:
> > On Tue, 2023-09-12 at 11:07 +0300, Michael Tokarev wrote:
> > > Generally, samba does place its files a bit arbitrary and
> > > unthinkfully.For example, in debian I have a patch which move
> > > socket
> > > directory (whichis definitely a runtime thing, with sockets to
> > > communicate with runningprocesses) to lock directory instead of
> > > having them in /var/lib/samba/ (!!)where they don't fit at all.
> > The main reason that at least some of the sockets are under
> > /var/lib/samba is that the socket permisisons are long-term state,
> > even
> > if the listeners are ephemeral.
> # ll -a /run/samba/msg.sock/
Yeah, that one doens't need to be under private, it just needs root-
only permissions, which we have good code to ensure (just outside the
context in your patch).
> I'm talking about the 100% transient runtime thing.
> msg.sock is not a place for private directory in /var/lib/samba.
Totally fair. Can you try and put that up via gitlab and we can see if
we can get it merged?
Andrew Bartlett (he/him) https://samba.org/~abartlet/
Samba Team Member (since 2001) https://samba.org
Samba Team Lead https://catalyst.net.nz/services/samba
Proudly developing Samba for Catalyst.Net Ltd - a Catalyst IT group
Samba Development and Support: https://catalyst.net.nz/services/samba
Catalyst IT - Expert Open Source Solutions
More information about the samba