]> git.ipfire.org Git - thirdparty/samba.git/commit
ctdb-scripts: Set ownership of statd-callout state directory
authorMartin Schwenke <mschwenke@ddn.com>
Mon, 19 Jun 2023 02:17:44 +0000 (12:17 +1000)
committerVolker Lendecke <vl@samba.org>
Thu, 30 May 2024 11:42:30 +0000 (11:42 +0000)
commit50b3cebeb39be1124d6ea572cb452cbd2a43f65e
tree77cdab98f4a9bca115c41c8e3cd6d992bcad2c95
parent608557c6ce3f1a26c62792db56869958e325d9ff
ctdb-scripts: Set ownership of statd-callout state directory

For add-client and del-client, statd-callout is called by rpc.statd,
which runs as rpcuser, statd or some other non-root system user.  This
means that add-client and del-client can't write in the statd-callout
state directory if it is only writable by root.  rpc.statd must be
able to write to its own local system statd state directory, so find
this directory and use it as a reference to set the ownership of
CTDB's statd-callout state directory.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
ctdb/config/statd-callout