Re: [users@httpd] Is there an option for cgi scripts similar to PHP's "open_basedir"?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/18/05, joey@xxxxxxxxxxxxx <joey@xxxxxxxxxxxxx> wrote:
> I have an chrooted apache-2.0.54 with suexec enabled.  I'm also using
> mod_userdir, along with PHP-cgi/suPHP and perl in the chroot environment.
> I would like to limit the files accessed by cgi scripts to files inside of
> the users directory (username/public_html).  Without using any sort of
> RBAL, is it possible to do this?  Is there an equivalent to PHP's
> open_basedir to cgi's?

No, that isn't possible because CGIs can be in arbitrary languages. 
(Well, it might be possible with something like SELinux, but I don't
know much about that.)  Your best bet is to use suexec or cgiwrap and
properly secure filesystem permissions so that the CGIs can only see
what you want.

Joshua.

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux