Re: [systemd-devel] Problem bind-mounting /etc/hosts

2025-01-30 Thread Michal Sekletar
On 29. 1. 2025, at 19:02, Thomas Köller wrote: > > I am creating a systemd service that contains the three lines below: > > TemporaryFileSystem = %E > BindReadOnlyPaths = %E/hosts > NetworkNamespacePath = /var/run/netns/vpnlink > > So the service runs in a network namespace of its own. The prob

[systemd-devel] Problem bind-mounting /etc/hosts

2025-01-29 Thread Thomas Köller
I am creating a systemd service that contains the three lines below: TemporaryFileSystem = %E BindReadOnlyPaths = %E/hosts NetworkNamespacePath = /var/run/netns/vpnlink So the service runs in a network namespace of its own. The problem is that I cannot mount '/etc/hosts' into the tmpfs: root@