
pd at pauldemarco
Mar 14, 2004, 2:59 PM
Post #3 of 7
(564 views)
Permalink
|
Yes critical devices, binaries, and libraries have all been replicated (hard linked) into the jails. Theres a mini system in each home, and has everything required to operate. This isn't right for all setups, but I think an option during the build of suexec would be useful. By chrooting to their home directory, your limiting what the cgi can see. I'm attempting to get around the problem with sites requiring global read, because apache runs as nobody. I don't believe mod_cgi matters, doesn't that launch suexec? And then suexec takes care of launching the cgi. It could simply strip off the starts of paths that match the home directory. I welcome the discussion, I'm here to determine the feasibility, past thoughts on why it may not have been done, and any implications that are known as much as anything. If its deemed possible without compromising security, then I'll make the necessary patch. > -----Original Message----- > From: Nick Kew [mailto:nick [at] webthing] > Sent: Sunday, March 14, 2004 4:44 PM > To: users [at] httpd > Subject: Re: [users [at] http] SuEXEC question > > On Sun, 14 Mar 2004, Paul DeMarco wrote: > > > Are there security or implementation issues related to either of these? > > How is CGI going to run chroot? > > CGI will be seriously crippled without /bin:/usr/bin:/usr/local/bin > in PATH and /lib:/usr/lib:/usr/local/lib in LD_LIBRARY_PATH. > Are you planning to replicate those in the jail? > > Once you've done that, you still need to hack mod_cgi to translate > those CGI environment variables that involve system paths. > > IOW, I think you're looking at a distinctly non-trivial project. > > -- > Nick Kew > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe [at] httpd > " from the digest: users-digest-unsubscribe [at] httpd > For additional commands, e-mail: users-help [at] httpd --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe [at] httpd " from the digest: users-digest-unsubscribe [at] httpd For additional commands, e-mail: users-help [at] httpd
|