1.0.3 rdnssd: Cannot write /var/run/rdnssd/resolv.conf.tmp: Permission denied

Task Info (Flyspray)
Opened By Sascha Wilde (swilde)
Task ID 56966
Type Bug Report
Project Arch Linux
Category Upstream Bugs
Version None
OS All
Opened 2018-01-05 18:14:14 UTC
Status Assigned
Assignee Christian Hesse (eworm)
Assignee Felix Yan (felixonmars)

Details

Description:

rdnssd can't write /var/run/rdnssd/resolv.conf.tmp so that DNS setup via IPv6 Router Advertisement isn't possible.

The reason is a problem related to systemd:

  • /var/run/rdnssd is created by systemd-tmpfiles based on: the information in /usr/lib/tmpfiles.d/ndisc6.conf: d /run/rdnssd 0755 nobody root
  • BUT the directory is not created with the UID 99 for nobody as owner (as configured for arch linux in /etc/passwd) but with the UID 65534 (which seems to be some defacto standard for 'nobody' on some other distros).
  • This mismatch is hard to detect, as `ls -l' shows 65534 and 99 both as "nobody".

Additional info:

Steps to reproduce:

  • Check ownership with: ls -lnd /var/run/rdnssd
  • for a full reproduction it is necessary to setup a radvd with RDNSS configured and install rdnssd (via ndisc6) ion the client.