Bug: pledge doesn't unveil nsswitch.conf

Author: amrftiCreated May 22, 2026Updated May 22, 2026
Labelsmedium severity

Contact Details

No response

What happened?

I'm using Alpine v3.23 Linux 6.18-32

With the pledge tool, dns doesn't work unless I also unveil /etc/nsswitch.conf, the dns promise should imply this file.

Version

pledge v1.8

What operating system are you seeing the problem on?

Linux

Relevant log output

bash
$ ./pledge -p 'stdio rpath inet dns tty' curl https://justine.lol/hello.txt
curl: (6) Could not resolve host: justine.lol (Could not contact DNS servers)
$ ./pledge -p 'stdio rpath inet dns tty' -v /etc/nsswitch.conf curl https://justine.lol/hello.txt
hello world