Bug 138499 - Feature request: terminate sandbox immediately on access violation
Bug#: 138499 Product:  Portage Development Version: 2.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: sandbox@gentoo.org Reported By: ed@catmur.co.uk
Component: Sandbox
URL: 
Summary: Feature request: terminate sandbox immediately on access violation
Keywords:  
Status Whiteboard: 
Opened: 2006-06-29 09:35 0000
Description:   Opened: 2006-06-29 09:35 0000
In some situations, it would make debugging sandbox violations easier if the
sandbox were to terminate immediately. This could be controlled by env var
SANDBOX_TERMINATE. I guess libsandbox needs to signal the process group?

------- Comment #1 From Alex Unleashed 2006-06-30 18:05:22 0000 -------
kill()ing the process group should do it. I'll be looking into this in the
weeks to come, as I have to debug some ebuilds failing to emerge in g/fbsd.
I'll update this bug report if I come with any useful patch.

------- Comment #2 From Martin Schlemmer (RETIRED) 2006-07-04 07:33:38 0000 -------
Theoretically added this to svn.  Uses SANDBOX_ABORT=1.