Support creds passing between lttng and sessiond
authorDavid Goulet <david.goulet@polymtl.ca>
Fri, 16 Dec 2011 17:15:28 +0000 (12:15 -0500)
committerDavid Goulet <david.goulet@polymtl.ca>
Fri, 16 Dec 2011 17:15:28 +0000 (12:15 -0500)
commitbe0406668cc2147087a38ac82d6029b8cc56ba79
treea7eef89a254cc5b1d48f185063086387dd9f747f
parentd19d9adaf251b74ab7bd64a1b04a9de22d10bb85
Support creds passing between lttng and sessiond

From now on, the lttng command line sends it's credential at each
command along with the regular communication data.

The tracing output directory is set to those credentials (uid/gid) if
the session daemon is running as a regular user (even if the user is in
the tracing group). So *no* tracing group is ever set if the session
daemon is not running as a non-root user.

If the sessiond is running as root, the tracing group is set (if exist)
and the uid of the calling user is used.

This fixes the triple enable-channel/event needed to trace UST
applications with a non-root session daemon. This was reported by
Yannick Brosseau <yannick.brosseau@polymtl.ca>.

Signed-off-by: David Goulet <david.goulet@polymtl.ca>
liblttngctl/lttngctl.c
lttng-sessiond/event.c
lttng-sessiond/lttng-sessiond.h
lttng-sessiond/main.c
This page took 0.025839 seconds and 4 git commands to generate.