Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85413 - access("~/",W_OK); returns 0 while in sandbox
Summary: access("~/",W_OK); returns 0 while in sandbox
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Sandbox (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-15 13:52 UTC by ratmice
Modified: 2005-06-09 08:47 UTC (History)
0 users

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


Attachments
should show what i mean... (sandbox-access-test.tar.gz,1.12 KB, application/gzip)
2005-04-13 20:52 UTC, ratmice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ratmice 2005-03-15 13:52:10 UTC
according to the access() function ~ is writable, but then the sandbox gives an ACCESS VIOLATION when you attempt to write to it.  It would be nice if access() were wrapped to return -1 if a write would produce an access violation.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Brian Harring (RETIRED) gentoo-dev 2005-04-13 19:17:07 UTC
Err... what access funcs?  os?
Comment 2 ratmice 2005-04-13 20:52:44 UTC
Created attachment 56221 [details]
should show what i mean...

ebuild which runs a program which calls access 2 and creates a file if access
returns ok
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2005-04-13 23:47:59 UTC
I know about this, and will fix it at some stage.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2005-06-09 08:47:52 UTC
Added to svn repo, will be in sandbox-1.2.9.