From dcad7125cf9752f62944d65665bee472917cfe43 Mon Sep 17 00:00:00 2001 From: runbtc <143069848+runbtc@users.noreply.github.com> Date: Sun, 19 May 2024 11:02:53 -0700 Subject: [PATCH] Ensure created socket files inherit the ACL --- production/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/production/install b/production/install index 980f513c472..1342b249b95 100755 --- a/production/install +++ b/production/install @@ -1933,11 +1933,11 @@ case $OS in Debian) if [ "${BITCOIN_INSTALL}" = ON ];then - setfacl -m "u:bitcoin:rwx,u:mempool:rwx,u:www-data:rwx,o::rw-" "${BITCOIN_HOME}/socket" + setfacl -Rdm "u:bitcoin:rwx,u:mempool:rwx,u:www-data:rwx,o::rw-" "${BITCOIN_HOME}/socket" chown "${BITCOIN_USER}:${BITCOIN_GROUP}" "${BITCOIN_HOME}/socket" fi if [ "${ELEMENTS_INSTALL}" = ON ];then - setfacl -m "u:elements:rwx,u:mempool:rwx,u:www-data:rwx,o::rw-" "${ELEMENTS_HOME}/socket" + setfacl -Rdm "u:elements:rwx,u:mempool:rwx,u:www-data:rwx,o::rw-" "${ELEMENTS_HOME}/socket" chown "${ELEMENTS_USER}:${ELEMENTS_GROUP}" "${ELEMENTS_HOME}/socket" fi ;;