From: David Goulet Date: Thu, 1 Mar 2012 15:36:06 +0000 (-0500) Subject: Fix security permission on lttng run directory X-Git-Tag: v2.0.0-rc2~19 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=61076f74f9e7ae286fe140d82ed0ac86895e3690;p=lttng-tools.git Fix security permission on lttng run directory Add execute flag for other (r+x) on the lttng run directory at /var/run/lttng so instrumented application *not* in the tracing group can register to the global session daemon running as root. (refs #141) Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 93417bca0..f82f05e00 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -3996,7 +3996,7 @@ static int set_permissions(char *rundir) } /* Ensure tracing group can search the run dir */ - ret = chmod(rundir, S_IRWXU | S_IXGRP); + ret = chmod(rundir, S_IRWXU | S_IXGRP | S_IXOTH); if (ret < 0) { ERR("Unable to set permissions on %s", rundir); perror("chmod");