Can someone commit this please? :-)

--- theo.c 2016-04-24 16:04:34.000000000 -0700
+++ theo.c.new 2016-04-24 16:05:25.000000000 -0700
@@ -195,6 +195,7 @@
  "I want a new vax, one that's not so slow.",
  "This sausage is made from unsound meat.",
  "The people who wrote this code are not on your side.",
+        "If you can't use ktrace, you should not try to do pledge work.
You are not tall enough to ride.",
 };

 static const int ntalk = sizeof(talk)/sizeof(talk[0]);

On Sun, Apr 24, 2016 at 10:09 AM, Theo de Raadt <dera...@openbsd.org> wrote:

> If you can't use ktrace, you should not try to do pledge work.
>
> You are not tall enough to ride.
>
> >I'm having a problem with pledge on openbsd
> >
> >#include <unistd.h>
> >void main(void) { pledge("proc", NULL); fork(); }
> >
> >when I run this I get:
> >
> >Program received signal SIGABRT, Aborted.
> >0x000005f7309c70ba in mprotect () at <stdin>:2
> >
> >here is a backtrace
> >
> >#0  0x000005f7309c70ba in mprotect () at <stdin>:2
> >#1  0x000005f7309c6cae in *_libc___cxa_finalize (dso=0x0)
> >     at /usr/src/lib/libc/stdlib/atexit.c:154
> >#2  0x000005f7309c507e in *_libc_exit (status=1702)
> >     at /usr/src/lib/libc/stdlib/exit.c:57
> >#3  0x000005f44cd009d8 in _start () from testprogram
> >#4  0x0000000000000000 in ?? ()
> >
> >would this be a bug in pledge or am I using it wrong?

Reply via email to