LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux 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
  Search this Thread
Old 12-19-2007, 08:23 PM   #1
iidroneii
LQ Newbie
 
Registered: Dec 2007
Posts: 1

Rep: Reputation: 0
gcc inside of a chroot jail


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.
 
Old 12-20-2007, 03:12 PM   #2
merlinblack
LQ Newbie
 
Registered: Dec 2007
Location: Sydney, Australia
Distribution: Ubuntu, Ubuntu Server, Linux From Scratch, Fedora, Mac OSX, and Windows sometimes.
Posts: 20

Rep: Reputation: 1
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.
 
  


Reply



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 On
HTML code is Off



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:09 PM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration