nixpkgs/nixos/modules/services/databases
Silvan Mosberger 5e974362be
nixos/couchdb: Prevent it from chowning /var/log to couchdb:couchdb
The default for logFile is /var/log/couchdb.log, and the tmpfile rules chown
${dirOf cfg.logFile}, which is just /var/log, to couchdb:couchdb.

This was found by Edes' report on IRC, which looked like

    Detected unsafe path transition /var/log → /var/log/journal during canonicalization of /var/log/journal

While this bug has been present since the initial couchdb module in
62438c09f7 by @garbas, this wasn't a
problem, because the initial module only created and chowned /var/log
if it didn't exist yet, which can't occur because this gets created in
the initial phases of NixOS startup.

However with the recent move from manual preStart chown scripts to
systemd.tmpfiles.rules in 062efe018d (#59389),
this chown is suddenly running unconditionally at every system
activation, therefore triggering the above error.
2019-07-24 20:52:53 +02:00
..
4store-endpoint.nix
4store.nix
aerospike.nix
cassandra.nix nixos/cassandra: use cassandra's default cluster name "Test Cluster" 2019-06-18 00:36:46 +00:00
clickhouse.nix nixos/clickhouse: replace deprecated usage of PermissionsStartOnly 2019-04-13 07:00:58 -04:00
cockroachdb.nix treewide: Remove usage of isNull 2019-04-29 14:05:50 +02:00
couchdb.nix nixos/couchdb: Prevent it from chowning /var/log to couchdb:couchdb 2019-07-24 20:52:53 +02:00
firebird.nix nixos/firebird: replace deprecated usage of PermissionsStartOnly 2019-05-26 07:20:57 -04:00
foundationdb.nix nixos/foundationdb: s/pidFile/pidfile/ 2019-07-09 17:11:31 -05:00
foundationdb.xml doc: Use prompt more often 2019-06-17 13:25:50 +02:00
hbase.nix nixos/hbase: replace deprecated usage of PermissionsStartOnly 2019-05-26 07:20:54 -04:00
influxdb.nix nixos/influxdb: replace deprecated usage of PermissionsStartOnly 2019-04-13 07:00:59 -04:00
memcached.nix nixos/memcached: replace deprecated usage of PermissionsStartOnly 2019-04-13 07:00:55 -04:00
monetdb.nix
mongodb.nix mongodb: Add authentication support 2019-05-25 18:09:30 +09:00
mysql.nix nixos/mysql: make ExecStartPost script fail on error 2019-07-03 08:50:21 +02:00
neo4j.nix
openldap.nix nixos/openldap: fix assertion 2019-07-17 11:08:10 +03:00
opentsdb.nix
pgmanage.nix treewide: Remove usage of isNull 2019-04-29 14:05:50 +02:00
postgresql.nix docs: update docs for postgresql plugins (#64899) 2019-07-21 22:05:41 +03:00
postgresql.xml postgresql: update docs 2019-07-23 14:17:14 +03:00
redis.nix nixos/redis: /var/run -> /run 2019-03-20 00:02:43 +01:00
rethinkdb.nix nixos/rethinkdb: /var/run -> /run 2019-03-20 00:02:43 +01:00
riak-cs.nix
riak.nix
stanchion.nix nixos/stanchion: replace deprecated usage of PermissionsStartOnly 2019-04-13 07:00:57 -04:00
virtuoso.nix