diff options
| author | Luflosi <luflosi@luflosi.de> | 2022-02-23 21:57:05 +0100 |
|---|---|---|
| committer | Luflosi <luflosi@luflosi.de> | 2022-03-15 15:16:14 +0100 |
| commit | 3c63da7cf87473423a8138a82fbec59b9684d1c6 (patch) | |
| tree | 4b4eaea8e1cf35bb5aea315cb75c19699e1bb355 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | ddd637d4e817e42e00c5d0ea70c38270d8f4f953 (diff) | |
nixos/tor: allow tor to read resolv.conf when using resolved
When `services.resolved.enable` is set to true, the file /etc/resolv.conf becomes a symlink to /etc/static/resolv.conf, which is a symlink to /run/systemd/resolve/stub-resolv.conf. Without this commit, tor does not have access to this file thanks to systemd confinement. This results in the following warning when tor starts:
```
[warn] Unable to stat resolver configuration in '/etc/resolv.conf': No such file or directory
[warn] Could not read your DNS config from '/etc/resolv.conf' - please investigate your DNS configuration. This is possibly a problem. Meanwhile, falling back to local DNS at 127.0.0.1.
```
To fix this, simply allow read-only access to the file when resolved is in use.
According to https://github.com/NixOS/nixpkgs/pull/161818#discussion_r824820462, the symlink may also point to /run/systemd/resolve/resolv.conf, so allow that as well.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
