You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bitcoind: dataDirReadableByGroup relies on sysperms, which Bitcoin Core ignores #55
services.bitcoind.dataDirReadableByGroup (modules/bitcoind.nix:184) relies on bitcoind's sysperms option, which Bitcoin Core no longer has. The packaged bitcoind (31.1, from the pinned nixpkgs) prints:
[warning] Ignoring unknown configuration value sysperms
and creates every file 0600 and every dir 0700, whatever the process umask. So with dataDirReadableByGroup = true:
preStart runs chmod -R g+rX blocks (modules/bitcoind.nix:413-417), so block files that exist at service start become group-readable.
Block files bitcoind creates while running (blk*.dat, rev*.dat, new index files) are 0600 until the next restart. A group member that reads blocks from disk loses access to new ones.
UMask = "0027" (modules/bitcoind.nix:449) has no effect.
The services.bitcoind.sysperms option only produces that warning.
No in-tree module sets dataDirReadableByGroup, so this only affects users who set it themselves.
bitcoind 31.1 (/nix/store/r64n79lb...-bitcoind-31.1), bitcoind -help-debug lists no sysperms.
Possible fixes
Remove sysperms (move it to modules/obsolete-options.nix), and either remove dataDirReadableByGroup too or document that it only covers files existing at start.
Or keep group access working with a POSIX default ACL on blocks/ (setfacl -d -m g::rX), set in preStart. bitcoind's explicit 0600 mode still caps the group bits through the ACL mask, so this needs testing before relying on it.
Activity
bitcoind: let the group read new block files with dataDirReadableByGroup
bitcoind: let the group read new block files with dataDirReadableByGroup
bitcoind: let the group read new block files with dataDirReadableByGroup
bitcoind: let the group read new block files with dataDirReadableByGroup
bitcoind: let the group read new block files with dataDirReadableByGroup
bitcoind: let the group read new block files with dataDirReadableByGr…