It works great, up until the time that pledge() ITSELF gets shot in the
head, which seems would be impossible! It’s supposed to only throw errors!
Or did I miss the memo that there’s a “pledge” pledge?

On Wed, Nov 24, 2021 at 8:19 PM Theo de Raadt <dera...@openbsd.org> wrote:

> You have a secret program and you want people on the internet to help
> you debug what you have done wrong in this secret program.
>
> You obviously don't know what you are doing, and I think you don't
> deserve help.
>
>
> Luke Small <lukensm...@gmail.com> wrote:
>
> > I have a program which runs fork() a couple times with pledges: “stdio
> > cpath wpath” for writing to disk and “stdio dns” for a dns caching
> process
> > after accepting command-line input. Is the execpromises, permitted to
> > increase/change to accommodate the different fork()s from the parent? If
> > so, why isn’t all of this discussed in the manpage.
> >
> > I’m running 7.0 and it immediately is killed when I run pledge with a
> > non-NULL execpromise.
> >
> > No error, just a sigabort. And nothing in the man page (even for
> -current:
> > on the web) which explains anything.
> >
> > https://github.com/lukensmall/pkg_ping
> >
> > This a command-line program is used to make manually choosing a
> responsive
> > mirror or automatically writing the most responsive OpenBSD mirror to
> > /etc/installurl very easy.
> >
> > On Wed, Nov 24, 2021 at 11:50 AM Luke Small <lukensm...@gmail.com>
> wrote:
> >
> > > I tried calling pledge with a non-NULL execpromise and noticed that it
> was
> > > killed. That’d be convenient if that behavior was noted in the man
> page!--
> > > -Luke
> > >
> > --
> > -Luke
>
-- 
-Luke

Reply via email to