Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548250 - sys-apps/sandbox: path-handling on paths >= 4096 bytes fails
Summary: sys-apps/sandbox: path-handling on paths >= 4096 bytes fails
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Sandbox (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 413621
  Show dependency tree
 
Reported: 2015-04-30 13:17 UTC by Kent Fredric (IRC: kent\n)
Modified: 2016-12-04 14:16 UTC (History)
3 users (show)

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


Attachments
test/sandbox-path/sandbox-path-0.01.ebuild (sandbox-path-0.01.ebuild,623 bytes, text/plain)
2015-04-30 13:17 UTC, Kent Fredric (IRC: kent\n)
Details
files/mkscript.pl (mkscript.pl,526 bytes, text/plain)
2015-04-30 13:18 UTC, Kent Fredric (IRC: kent\n)
Details
emerge --info (einfo,8.15 KB, text/plain)
2015-04-30 13:31 UTC, Kent Fredric (IRC: kent\n)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) gentoo-dev 2015-04-30 13:17:14 UTC
Created attachment 402296 [details]
test/sandbox-path/sandbox-path-0.01.ebuild

Discovered when probing #413621 , but is an independent concern regardless of how that bug eventually gets resolved.

Attached is a script / ebuild combination that when run under FEATURES="usersandbox test" guarantees that:

- perl can create the path ( Perl can create paths as long as 8kb )
- rm and chmod cannot modify or delete it.

Removing usersandbox makes the problem go away.

Code in question executes fine as any user.

If this problem cannot be resolved, then it needs to be documented somewhere clearly as such, so that ebuild maintainers can kill things that rely on this behaviour with justification.
Comment 1 Kent Fredric (IRC: kent\n) gentoo-dev 2015-04-30 13:18:15 UTC
Created attachment 402298 [details]
files/mkscript.pl
Comment 2 Kent Fredric (IRC: kent\n) gentoo-dev 2015-04-30 13:31:02 UTC
Created attachment 402300 [details]
emerge --info