Re: pledge(2) in script(1)

2015-10-20 Thread Theo de Raadt
> My script(1) just got killed with > > script(15938): syscall 37 > > Surely this is due to breaking a pledge(2), > but grepping /usr/src/usr.bin/script for "pledge" > does not reveal anything. > > Reading pledge(2), it is not clear to me > where to find what "syscall 37" is. Only you kno

Re: pledge(2) in script(1)

2015-10-20 Thread Jan Stary
On Oct 20 12:18:07, t...@math.ethz.ch wrote: > On Tue, Oct 20, 2015 at 11:45:59AM +0200, Jan Stary wrote: > > My script(1) just got killed with > > > > script(15938): syscall 37 > > Can you provide a reproducible test case? What did you do? Building firefox: make inside a script. > > Surel

Re: pledge(2) in script(1)

2015-10-20 Thread Sebastien Marie
On Tue, Oct 20, 2015 at 12:18:07PM +0200, Theo Buehler wrote: > On Tue, Oct 20, 2015 at 11:45:59AM +0200, Jan Stary wrote: > > My script(1) just got killed with > > > > script(15938): syscall 37 > > Can you provide a reproducible test case? What did you do? > syscall 37 is SYS_kill: $ grep

Re: pledge(2) in script(1)

2015-10-20 Thread Theo Buehler
On Tue, Oct 20, 2015 at 11:45:59AM +0200, Jan Stary wrote: > My script(1) just got killed with > > script(15938): syscall 37 Can you provide a reproducible test case? What did you do? > > Surely this is due to breaking a pledge(2), > but grepping /usr/src/usr.bin/script for "pledge" > do

pledge(2) in script(1)

2015-10-20 Thread Jan Stary
My script(1) just got killed with script(15938): syscall 37 Surely this is due to breaking a pledge(2), but grepping /usr/src/usr.bin/script for "pledge" does not reveal anything. Reading pledge(2), it is not clear to me where to find what "syscall 37" is. Jan