mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
The different fixed limits for absolute and relative path lengths of Xenstore nodes make it possible to create per-domain nodes via absolute paths which are not accessible using relative paths, as the two limits differ by 1024 characters. Instead of this weird limits use only one limit, which applies to the relative path length of per-domain nodes and to the absolute path length of all other nodes. This means, the path length check is applied to the path after removing a possible start of "/local/domain/<n>/" with <n> being a domain id. There has been the request to be able to limit the path lengths even more, so an additional quota is added which can be applied to path lengths. It is XENSTORE_REL_PATH_MAX (2048) per default, but can be set to lower values. This is done via the new "-M" or "--path-max" option when invoking xenstored. Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Paul Durrant <paul@xen.org> Acked-by: Julien Grall <jgrall@amazon.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Wei Liu <wl@xen.org>
The following files are imported from the Samba project. We use the versions from Samba 3, the current stable branch. talloc.c: samba-trunk/source/lib/talloc.c r14291 2006-03-13 04:27:47 +0000 talloc.h: samba-trunk/source/include/talloc.h r11986 2005-12-01 00:43:36 +0000