Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 138499

Summary: Feature request: terminate sandbox immediately on access violation
Product: Portage Development Reporter: Ed Catmur <ed>
Component: SandboxAssignee: Sandbox Maintainers <sandbox>
Status: RESOLVED FIXED    
Severity: enhancement CC: unledev+b.g.o
Priority: High    
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ed Catmur 2006-06-29 09:35:20 UTC
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 Alex Unleashed 2006-06-30 18:05:22 UTC
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 Martin Schlemmer (RETIRED) gentoo-dev 2006-07-04 07:33:38 UTC
Theoretically added this to svn.  Uses SANDBOX_ABORT=1.