Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265885 - sys-apps/sandbox does not use wrapper pre-checks when tracing static binaries
Summary: sys-apps/sandbox does not use wrapper pre-checks when tracing static binaries
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Sandbox (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-12 19:10 UTC by Daniel Robbins
Modified: 2009-06-04 16:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
failed sandbox output 1 (d19f27c54.txt,2.89 KB, text/plain)
2009-04-12 19:11 UTC, Daniel Robbins
Details
failed sandbox output 2 (drobbins) (d19f27c55.txt,1.86 KB, text/plain)
2009-04-12 19:14 UTC, Daniel Robbins
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Robbins 2009-04-12 19:10:18 UTC
Reported by a Funtoo user and independently confirmed by me - it appears that sandbox-1.9 does not properly ptrace static binaries and thus if something such as coreutils is compiled with USE="static", subsequent /bin/install calls made inside sandbox will fail. See attached output.

Note in the attached output that the "C:" line from the ACCESS VIOLATION SUMMARY has a space between "/var" and "tmp", where it appears a "/" should be. This may indicate a string-handling bug in the static binaries support in sandbox-1.9.

Reproducible: Always

Steps to Reproduce:
0. ensure sandbox-1.9 is installed
1. USE="static" emerge coreutils
2. emerge <any package that uses /bin/install (pretty much everything)>
3. view sandbox violation.
Comment 1 Daniel Robbins 2009-04-12 19:11:37 UTC
Created attachment 188115 [details]
failed sandbox output 1
Comment 2 Daniel Robbins 2009-04-12 19:14:22 UTC
Created attachment 188117 [details]
failed sandbox output 2 (drobbins)
Comment 3 SpanKY gentoo-dev 2009-04-12 22:25:52 UTC
there is nothing wrong with the string handling.  the space is because coreutils modifies its argv.
Comment 4 Daniel Robbins 2009-04-14 06:41:37 UTC
OK, good to know. Is the issue then that the static sandbox stuff uses argv to do its magic? Or some other as-yet-undetermined bug in sandbox?
Comment 5 SpanKY gentoo-dev 2009-04-14 07:25:11 UTC
i defined the bug in the new summary.  only thing remaining is for me to ponder how to fix it without duplicating code.
Comment 6 Daniel Robbins 2009-04-14 17:19:41 UTC
OK, thanks for looking into this, I do appreciate it.

Now I can get back to riding my invisible pony around the house.
Comment 8 Daniel Robbins 2009-06-04 16:10:45 UTC
Nice - I will give it a shot.