LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Thread Tools
Old 12-19-2007, 09:23 PM   #1
iidroneii
LQ Newbie
 
Registered: Dec 2007
Posts: 1
Thanked: 0
gcc inside of a chroot jail


[Log in to get rid of this advertisement]
I'm going to do my best to describe the issue here, not really sure what information is needed..as I'm rather new at this.

I've got a chroot jail setup and working wonderfully, the only issue I have is, when I'm in as one of the jailed users, I can't compile. when I run a make file, it tosses pages of errors...yet when I'm in as root everything works fine. I've set the jailed user as owner, totally opened up permissions on all the files...still doesn't work. My only guess is, GCC isn't working inside the jail...

If anyone out there can offer any insight I'd be quite thankful.
iidroneii is offline     Reply With Quote
Old 12-20-2007, 04:12 PM   #2
merlinblack
LQ Newbie
 
Registered: Dec 2007
Location: South Island, New Zealand
Distribution: Ubuntu, Ubuntu Server, LFS
Posts: 9
Thanked: 0
gcc and chroot jail

gcc and its associated programs have a lot of paths set in configuration files, namely "spec" files. You would need to change these to get it going inside a chroot jail. It would be quite complicated to get it going I think, and then it wouldn't work for non-jailed users. Perhaps you could install a copy just for your jailed users. Have a look at the instructions for building a system from www.linuxfromscratch.org. There you will find intstructions on building a gcc that works from a /tools directory rather than /bin etc. That might give you some ideas. Bit of a job I susspect.
merlinblack is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chroot jail pachanga Linux - General 12 09-26-2008 06:15 AM
Jail and chroot rogk Linux - Security 2 10-16-2005 03:20 AM
chroot jail etc. f1uke Linux - Security 5 08-24-2005 04:12 AM
Chroot jail Gimpy Linux - Software 6 12-15-2002 05:52 PM
chroot jail simon Linux - Security 3 08-05-2001 09:21 PM


All times are GMT -5. The time now is 03:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration