Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.