> It unfortunately is not that simple to me. Because I don't have any
> getpw* code really. But when I take getpw out of pledge it aborts the
> program upon execution like so:
>
> beta# rbdaemon -s 192.168.35.4
> mkdir: File exists
> Abort trap (core dumped)
> beta# dmesg|tail -1
> rbdaemon(73308): syscall 33 "getpw"
> beta# cd -
> /home/pjp/Src/sources/Net/rbdaemon
> beta# grep pledge\( rbdaemon.c
> if (pledge("stdio cpath rpath wpath inet dns exec proc", NULL) <
> 0) {
>
>
> So pledge requires that I have getpw. I feel like i'm caught in a
> catch22. This is a backup program that I'M building.. I'm putting the
> code up (it's ugly) you can read it here:
open against that file returns ENOENT, it does not kill the process
syscall 33 is access(2)
I don't see any circumstances where libc calls access("/etc/spwd.db", x)
ktrace or it didn't happen.