Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    If you are worried about shell escapes, then you should not give sudo. Commented Oct 8, 2018 at 12:00
  • Yeah, that's my position too, TBH. I suspect though that sudo offers enough security theatre for the powers that be to be happy. Commented Oct 8, 2018 at 12:47
  • Noexec is advisory. cp /usr/lib/klibc/bin/sh /tmp/martian ; sudo /tmp/martian Go ahead; try it. It ignores your noexec directive even though you can see that it is inherited because child processes it spawns inherit it. Commented Oct 8, 2018 at 21:26