News for hackers. Stuff that matters.
Re:Support of OpenBSD pledge(2) in programming languages by teamhappy on Saturday April 09, 2016 @05:43PM (#11463490)
Here's Theo de Raadt explaining how pledge(2) works: https://www.youtube.com/watch?v=F_7S1eqKsFk
Re:Support of OpenBSD pledge(2) in programming languages by shirro on Saturday April 09, 2016 @11:59PM (#11464815)
This seems like such an elegant idea it is surprising that it hasn't been done before. I can imagine adding pledge calls to software I write myself. I can't say that for most other policy systems.
Re:Support of OpenBSD pledge(2) in programming languages by xorcist on Sunday April 10, 2016 @03:32AM (#11465294)
Hasn't it? It doesn't look very different from the many syscall filters out there, of which the seccomp family is most used. That's what Chrome and OpenSSH uses to sandbox.

Perhaps the design of pledge will turn out to have advantages, but it's a pity the unix world fragments yet again on something that should be trivial. Either people will limit themselves to chroot as the only portable solution, or hairy libraries will be necessary (like libevent .. no, libev.. wait, libuv).

Re:Support of OpenBSD pledge(2) in programming languages by teamhappy on Sunday April 10, 2016 @08:46AM (#11465910)

  > [...] but it's a pity the unix world fragments yet again
  > on something that should be trivial.
FWIW: Theo mentions in the talk that he's willing to change things if that makes it easier for other operating systems to adopt pledge(2).
Re:Support of OpenBSD pledge(2) in programming languages by shirro on Monday April 11, 2016 @06:59AM (#11470702)
The simplicity of the interface is what feels novel to me.

It probably isn't an issue with a project like Chrome or Firefox to find someone able to understand all the intricacies of seccomp-bpf and implement it properly. And I am sure seccomp is a much more powerful solution.

But for a sole programmer or small team writing some micro-services or similar it seems unlikely they are going to bother. By comparison sending a string with some well chosen categories looks so ridiculously easy it lowers the barriers a lot.

Re:Support of OpenBSD pledge(2) in programming languages by kristopolous on Saturday April 09, 2016 @05:54PM (#11463532)
can anyone provide a textual description of what this is? so far all I've found is a broken manpage and a slideshow presentation without much explanation.
Re:Support of OpenBSD pledge(2) in programming languages by tobik on Saturday April 09, 2016 @05:55PM (#11463536)
Re:Support of OpenBSD pledge(2) in programming languages by kristopolous on Saturday April 09, 2016 @05:58PM (#11463550)
thanks ... that works. Also this register article is decent: http://www.theregister.co.uk/2015/11/10/untamed_pledge_hopes...
Re:Support of OpenBSD pledge(2) in programming languages by plank on Sunday April 10, 2016 @03:38AM (#11465315)
Thank you for the links. Reading the presentation, and ignoring the 'monkey' and 'loudmouth' comments, made me think this could be seen as an implementation of the 'intent security' capability that Android has through its Manifests. Although I assume (I did not go through all the slides) that implementing this is 'slightly' more complex due to the number of things you can pledge to use/non-use.
Re:Support of OpenBSD pledge(2) in programming languages by rubiquity on Saturday April 09, 2016 @10:04PM (#11464500)
pledge allows a process to declares privileges it needs to function. If the process accesses something beyond those pledges then the Kernel kills the process. The idea is that this will help reduce the surface area that certain types of attacks like remote code execution can have.
Re:Support of OpenBSD pledge(2) in programming languages by BogusIKnow on Sunday April 10, 2016 @07:53AM (#11465812)
Content starts at around 14:30 minutes if you want to jump over the bashing of others and self-adulation by Theo.
Re:Support of OpenBSD pledge(2) in programming languages by _asummers on Sunday April 10, 2016 @10:46AM (#11466314)
But you miss the wonderfully absurd gif at the ~02:00 mark.