Hi, Am 03.10.2009 23:36, schrieb Tobias Oetiker: > Hi Sebastian, > > Today Sebastian Harl wrote: > >> When talking to a local daemon (thru a UNIX socket), relative path names are >> resolved to absolute path names to allow for transparent integration into >> existing solutions (as requested by Tobi). >> >> However, when talking to a remote daemon, absolute path names are not >> allowed, >> since path name translation is done by the server (relative to the base >> directory). >> > > am I reading the code correctly? You do not > rewrite a request if it is sent remotely, but you do not complain > if a remote request uses an absolute path either ? > > cheers > tobi > IMHO the behaviour should mor be like: - Requests are always rewritten - The Cache Daemon defines a root path (simular to an chroot) - Every request, independently of being absolute or relative, is interpreted relative to this root directory.
That way there's no change if a client requests a local or an remote file to be queried. Example: A client asks to write to /var//lib/rrdtool/sample.rrd while /var/lib/rrdtool is the "chroot cage". The access would then look for a file sample./var/lib/rrdtool/var/lib/rrdtool/sample.rrd That way remote maschines can be restricted from accessing files in the file system that they shouldn't have access to. If you e.g. want /home/myrrds to be accessable you'd just need to create a symlink there though. Regards, BenBE.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ rrd-developers mailing list rrd-developers@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers