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 nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
4store.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
aerospike.nix aerospike: Disables build on aarch64 2018-12-10 14:55:19 -05:00
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 nixos/monetdb: init (#39812) 2018-05-01 16:44:12 +02:00
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 nixos/neo4j: Update module, make compatible with neo4j 3.4 2018-07-12 19:28:40 -07:00
openldap.nix nixos/openldap: fix assertion 2019-07-17 11:08:10 +03:00
opentsdb.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
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 nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
riak.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
stanchion.nix nixos/stanchion: replace deprecated usage of PermissionsStartOnly 2019-04-13 07:00:57 -04:00
virtuoso.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00