Messages in this thread | | | Date | Wed, 15 Apr 1998 20:40:10 +0200 (CEST) | From | Felix Schroeter <> | Subject | Re: 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
| |