lkml.org 
[lkml]   [1998]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: PATCH: smart symlink loop detection.
Hello!

In article <6h0tod$ls$1@palladium.transmeta.com> you write:
>[...]

>I seem to recall the limit in BSD being 20. I was a bit surprised
>that Linux was as low as 5. I would suggest 32 as a nice, round
>number[1]; there is no reason to handle thousands of levels; all I can
>really see benefitting from that is for malicious users who want to
>find holes in the kernel.

felix@mamba:/sys $ gid MAXSYMLINKS
[...]
sys/param.h:175:#define MAXSYMLINKS 32
[...]

So at least the BSD I work with (OpenBSD-current) has 32. And it has had
the value 32 at least since the OpenBSD CVS repository was created.

If the Linux kernel groks a recursion depth of 32, that would
probably be the way to go for 2.2, I think. But the idea of using
the Tarjan algorithm for loop detection is pleasing!

Regards, Felix.

PS: Yes, in computer things 32 *is* a rounder number than 20 :-)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.059 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site