X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=ltt-sessiond%2Fmain.c;h=e7ad6f9b140e1c48f05f2befcda5d73fc1ce2803;hp=cbd6a3f3f6a7469ddc2be72fb5b313555bf37989;hb=f7776ea71b15b00b5f83b9876ccba9f6ede8e2b4;hpb=333f285e479a22c99122aa92b988b10c597551e4 diff --git a/ltt-sessiond/main.c b/ltt-sessiond/main.c index cbd6a3f3f..e7ad6f9b1 100644 --- a/ltt-sessiond/main.c +++ b/ltt-sessiond/main.c @@ -634,6 +634,7 @@ static int create_trace_dir(struct ltt_kernel_session *session) /* Create all channel directories */ cds_list_for_each_entry(chan, &session->channel_list.head, list) { DBG("Creating trace directory at %s", chan->pathname); + // TODO: recursive create dir ret = mkdir(chan->pathname, S_IRWXU | S_IRWXG ); if (ret < 0) { perror("mkdir trace path"); @@ -1197,6 +1198,8 @@ static void *thread_manage_clients(void *data) continue; } + // TODO: Validate cmd_ctx including sanity check for security purpose. + /* * This function dispatch the work to the kernel or userspace tracer * libs and fill the lttcomm_lttng_msg data structure of all the needed