Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249341 - sandbox-1.3.1: unable to remove a symlink to a file in /
Summary: sandbox-1.3.1: unable to remove a symlink to a file in /
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Sandbox (show other bugs)
Hardware: All All
: High normal
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-30 02:46 UTC by SpanKY
Modified: 2008-12-23 12:30 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2008-11-30 02:46:49 UTC
to reproduce:
$ ebuild <ebuild> install
$ ebuild <ebuild> install

for example:
$ ebuild shadow-4.1.2.2.ebuild install
Appending /usr/local/gentoo-x86 to PORTDIR_OVERLAY...          
ACCESS DENIED  unlinkat:  /proc/24627/fd/3/passwd              
rm: cannot remove `/var/tmp/portage/sys-apps/shadow-4.1.2.2/image/usr/bin/passwd': Permission denied
mkdir: cannot create directory `/var/tmp/portage/sys-apps/shadow-4.1.2.2/image': File exists        

>>> Install shadow-4.1.2.2 into /var/tmp/portage/sys-apps/shadow-4.1.2.2/image/ category sys-apps
...
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-24514.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: unlinkat
S: deny
P: /proc/24627/fd/3/passwd
A: /proc/24627/fd/3/passwd
R: /bin/passwd
C: rm -rf /var/tmp/portage/sys-apps/shadow-4.1.2.2/image
--------------------------------------------------------------------------------

$ ls /var/tmp/portage/sys-apps/shadow-4.1.2.2/image/usr/bin/passwd -l
lrwxrwxrwx 1 vapier users 11 2008-11-29 21:44 /var/tmp/portage/sys-apps/shadow-4.1.2.2/image/usr/bin/passwd -> /bin/passwd