Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96242 - [gnuconfig.eclass] gtk-engines causes sandbox access violation consequence of not using --copy libtoolize option
Summary: [gnuconfig.eclass] gtk-engines causes sandbox access violation consequence of...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-15 19:38 UTC by Octavio Ruiz (Ta^3)
Modified: 2005-08-03 02:35 UTC (History)
1 user (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 Octavio Ruiz (Ta^3) 2005-06-15 19:38:28 UTC
gtk-engines causes a sandbox access violation, consequence of using --force libtoolize option and gnuconfig.eclass together. gnuconfig.eclass copy a symlink to workdir (config.sub -> /usr/share/libtool/config.sub) and then libtoolize try to modify/replace it (leaving the sandbox, following the symlink). This only happends when alpha, amd64 or ppc64 arch is used (gnuconfig_update function not working has expected?):

     44     if use alpha || use amd64 || use ppc64 ; then
     45         gnuconfig_update || die 'gnuconfig_update failed'
     46         ( cd $GTK1_S && libtoolize --force ) || die 'libtoolize1 failed'
     47         ( cd $GTK2_S && libtoolize --force ) || die 'libtoolize2 failed'
     48     fi

When configuring:

...
 * econf: updating gtk-engines-2.6.3/config.sub with /usr/share/gnuconfig/config.sub
cp: `/usr/share/gnuconfig/config.sub' and `/var/tmp/portage/gtk-engines-2.6.3/work/gtk-engines-2.6.3/config.sub' are the same file
ACCESS DENIED   chmod:     /var/tmp/portage/gtk-engines-2.6.3/work/gtk-engines-2.6.3/config.sub
chmod: changing permissions of `/var/tmp/portage/gtk-engines-2.6.3/work/gtk-engines-2.6.3/config.sub': Permission denied
 * econf: updating gtk-engines-0.12/config.sub with /usr/share/gnuconfig/config.sub
cp: `/usr/share/gnuconfig/config.sub' and `/var/tmp/portage/gtk-engines-2.6.3/work/gtk-engines-0.12/config.sub' are the same file
ACCESS DENIED   chmod:     /var/tmp/portage/gtk-engines-2.6.3/work/gtk-engines-0.12/config.sub
chmod: changing permissions of `/var/tmp/portage/gtk-engines-2.6.3/work/gtk-engines-0.12/config.sub': Permission denied
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu

...

 * econf: updating gtk-engines-2.6.3/config.sub with /usr/share/gnuconfig/config.sub
cp: `/usr/share/gnuconfig/config.sub' and `/var/tmp/portage/gtk-engines-2.6.3/work/gtk-engines-2.6.3/config.sub' are the same file
ACCESS DENIED   chmod:     /var/tmp/portage/gtk-engines-2.6.3/work/gtk-engines-2.6.3/config.sub
chmod: changing permissions of `/var/tmp/portage/gtk-engines-2.6.3/work/gtk-engines-2.6.3/config.sub': Permission denied
 * econf: updating gtk-engines-0.12/config.sub with /usr/share/gnuconfig/config.sub
cp: `/usr/share/gnuconfig/config.sub' and `/var/tmp/portage/gtk-engines-2.6.3/work/gtk-engines-0.12/config.sub' are the same file
ACCESS DENIED   chmod:     /var/tmp/portage/gtk-engines-2.6.3/work/gtk-engines-0.12/config.sub
chmod: changing permissions of `/var/tmp/portage/gtk-engines-2.6.3/work/gtk-engines-0.12/config.sub': Permission denied
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu

...

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-x11-themes_-_gtk-engines-2.6.3-17455.log"

chmod:     /var/tmp/portage/gtk-engines-2.6.3/work/gtk-engines-2.6.3/config.sub (symlink to /usr/share/gnuconfig/config.sub)
chmod:     /var/tmp/portage/gtk-engines-2.6.3/work/gtk-engines-0.12/config.sub (symlink to /usr/share/gnuconfig/config.sub)
chmod:     /var/tmp/portage/gtk-engines-2.6.3/work/gtk-engines-2.6.3/config.sub (symlink to /usr/share/gnuconfig/config.sub)
chmod:     /var/tmp/portage/gtk-engines-2.6.3/work/gtk-engines-0.12/config.sub (symlink to /usr/share/gnuconfig/config.sub)
--------------------------------------------------------------------------------

Quo: Is not redudant the work of gnuconfig.eclass and ebuild.sh?
Comment 1 Octavio Ruiz (Ta^3) 2005-06-28 06:32:01 UTC
See Bug #93363 
Comment 2 SpanKY gentoo-dev 2005-06-28 07:03:01 UTC
eclass should run libtoolize with --copy option
Comment 3 Leonardo Boshell (RETIRED) gentoo-dev 2005-08-03 02:35:00 UTC
Fixed in CVS.