From: Philippe Proulx Date: Thu, 27 Nov 2014 22:35:32 +0000 (-0500) Subject: Fix: channel names are not validated X-Git-Tag: v2.5.3~3 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=38956b501df0cc3f5041c5604039c2ec2d8efa76;hp=38956b501df0cc3f5041c5604039c2ec2d8efa76;p=lttng-tools.git Fix: channel names are not validated This patch ensures: 1. A channel name does not contain any '/' character, since relative paths may be injected in the channel name otherwise (knowing that the channel name is eventually part of a file name) 2. A channel name does not start with a '.' character, since trace readers (Babeltrace is one of them) could interpret files starting with a dot as hidden files and ignore them when opening the CTF trace Fixes: #751 Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau Conflicts: include/lttng/lttng-error.h src/bin/lttng/commands/enable_channels.c src/common/error.c ---