Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111367 - new ebuild for l32 utility that rolls linux32, chroot, and su into one command
Summary: new ebuild for l32 utility that rolls linux32, chroot, and su into one command
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.gonoph.net/node/37
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-11-03 08:13 UTC by Billy Holmes
Modified: 2009-07-25 20:01 UTC (History)
2 users (show)

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


Attachments
ebuild for new command (l32-1.1.ebuild,446 bytes, text/plain)
2005-11-03 08:14 UTC, Billy Holmes
Details
a patch to keep the default chroot directory that is coded in l32.h (l32_h-gentoo.patch,334 bytes, patch)
2005-11-03 08:16 UTC, Billy Holmes
Details | Diff
updated ebuild (l32-1.1.ebuild,610 bytes, text/plain)
2005-11-03 10:16 UTC, Billy Holmes
Details
Updated patch to match the chroot handbook (l32_h-gentoo.patch,335 bytes, patch)
2005-12-14 08:03 UTC, Billy Holmes
Details | Diff
version bump l32-1.1.1 (l32-1.1.1.ebuild,610 bytes, text/plain)
2005-12-19 09:55 UTC, Billy Holmes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Billy Holmes 2005-11-03 08:13:04 UTC
I created a utility called l32 that performs the personality switch, chroot,
suid (back to a normal user) and execv().

normally I have to do this as a normal user to run a 32-bit program in a chroot:

$ sudo linux32 chroot /home/32-bit su - user1 -c id

With this command installed, I just do this:

$ l32 id
Comment 1 Billy Holmes 2005-11-03 08:14:35 UTC
Created attachment 72021 [details]
ebuild for new command

this ebuild is also contained in the archive
Comment 2 Billy Holmes 2005-11-03 08:16:18 UTC
Created attachment 72022 [details, diff]
a patch to keep the default chroot directory that is coded in l32.h

l32.h has /home/32-bit as the hard coded chroot. The source is designed to
throw an error if the user hasn't edited that file and put in their own chroot
directory, however, in order to get the ebuild to work without interaction, I
submit this patch.
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2005-11-03 09:04:34 UTC
- please attach files as plain text
- the ebuild header is missing
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2005-11-03 09:04:34 UTC
- please attach files as plain text
- the ebuild header is missing¹
- IUSE="" is missing
- use  make DESTDIR=${D} install  instead einstall


[1] http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=3
Comment 5 Billy Holmes 2005-11-03 10:16:30 UTC
Created attachment 72040 [details]
updated ebuild

updated ebuild with comments from carlo@gentoo.org

also archive is updated without version bump to include DESTDIR in the Makefile
Comment 6 Billy Holmes 2005-12-14 08:03:44 UTC
Created attachment 74733 [details, diff]
Updated patch to match the chroot handbook

I changed the DEFAULT_LOWDIR to be /mnt/gentoo32 to match the chroot handbook
Comment 7 Billy Holmes 2005-12-19 09:55:37 UTC
Created attachment 75111 [details]
version bump l32-1.1.1

fixed a bug in source, where it was not setting the personality correctly. Also added another check to ensure the personality was switched successfully.
Comment 8 James Earl Spahlinger 2009-07-25 20:01:18 UTC
with apologies for closing: upstream appears dead, if upstream is alive and kicking feel free to re-open.