[oclug] Apache + CDROM under webroot = bad idea?

Matthew Wilcox willy at debian.org
Tue Jun 24 17:00:42 EDT 2003


On Tue, Jun 24, 2003 at 04:48:25PM -0400, Brian's Linux Box wrote:
> mount /dev/cdrom /var/www/html/graphics
> and voila - 30% more files without taking up any harddrive space.
> 
> Performance issues aside  (yep - she's a 2x CDROM!) are there any 
> security risks/other concerns you might know of from a stunt like this?

No, this is exactly the kind of thing unix excels at.

Just wait till people start discovering the fun to be had with namespaces ;-)

(mount --bind, mount --rbind, mount --move).  the manpage is somewhat
misleading since it says "olddir" and "newdir".  in fact you can mount
any object except a symlink on any object but a symlink.

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk



More information about the OCLUG mailing list