Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263661 - revdep-rebuild too strict when checking working directory
Summary: revdep-rebuild too strict when checking working directory
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
: 408357 427968 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-24 19:28 UTC by Grzegorz Kulewski
Modified: 2012-07-25 15:46 UTC (History)
2 users (show)

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 Grzegorz Kulewski 2009-03-24 19:28:06 UTC
Hello,

I have /var/cache as a symlink (to some other filesystem). This breaks revdep-rebuild for some reason:

# revdep-rebuild -pv
* Configuring search environment for revdep-rebuild
* Working directory expected to be /var/cache/revdep-rebuild, but it is /mnt/evms/xxx/003/varia/var/cache/revdep-rebuild

Could we do something to remove the check or make it less strict?

_Everything_ else just works with this setup and it's not insane to move /var/cache from root filesystem.


Reproducible: Always

Steps to Reproduce:




# eix gentoolkit
[I] app-portage/gentoolkit
     Available versions:  0.2.3-r1 ~*0.2.4_pre8 ~0.2.4 ~0.2.4.1 0.2.4.2 0.2.4.2-r1 {userland_GNU}
     Installed versions:  0.2.4.2-r1(22:06:01 02/05/09)(userland_GNU)
     Homepage:            http://www.gentoo.org/proj/en/portage/tools/index.xml
     Description:         Collection of administration scripts for Gentoo
Comment 1 michael@smith-li.com 2009-04-13 23:19:02 UTC
Could you not loopmount the directory instead of using a symlink?
Comment 2 Grzegorz Kulewski 2009-04-15 20:19:29 UTC
(In reply to comment #1)
> Could you not loopmount the directory instead of using a symlink?

You mean bind-mount?

I don't remember why now but for some reason I couldn't or didn't want to.

But still that check looks way too much restrictive, no? Why should hammer decide what nails I am allowed to use it with?? 

Comment 3 Paul Varner (RETIRED) gentoo-dev 2009-04-15 20:39:27 UTC
The reason the check is restrictive is when you use symlimks your system is vulnerable to a symlink attack. See Bug #203414
Comment 4 Paul Varner (RETIRED) gentoo-dev 2009-04-15 22:52:53 UTC
Security, The reporter of this bug feels that the symlink checks in revdep-rebuild are too strict. Since the current code originated out of the discussions on bug #203414, can someone on the security team comment on if the current behavior should or should not be changed.
Comment 5 Tobias Heinlein (RETIRED) gentoo-dev 2009-04-16 00:37:50 UTC
Let's resume discussion on bug #203414.
Comment 6 Paul Varner (RETIRED) gentoo-dev 2009-04-16 14:11:55 UTC
Reopening based on Bug 203414, Comment #35
Comment 7 michael@smith-li.com 2009-04-17 02:40:18 UTC
Patch submitted in bug 203414 -- can we close this one and track the discussion over there?
Comment 8 Paul Varner (RETIRED) gentoo-dev 2012-07-25 15:40:22 UTC
*** Bug 427968 has been marked as a duplicate of this bug. ***
Comment 9 Paul Varner (RETIRED) gentoo-dev 2012-07-25 15:46:28 UTC
*** Bug 408357 has been marked as a duplicate of this bug. ***