[rrd-developers] [PATCH] rrdcached enforces no-link policy for base path

Tobias Oetiker tobi at oetiker.ch
Tue Oct 14 21:24:21 CEST 2008


Today kevin brintnall wrote:

> Now, the daemon will check that a base directory is NOT reached via
> symbolic link.  Documentation added to illustrate the restriction.
>
> This allows several simplifying (and performance-enhancing) assumptions to
> be made elsewhere in the code:
>
>  * it ensures that paths resolved in the client via realpath() will match
>    our data structure keys
>
>  * it's possible to generate the correct absolute path when given a
>    relative path by simply prepending the base directory
>
>  * it's not necessary to resolve paths that begin with '/'

ok
tobi

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the rrd-developers mailing list