From 61076f74f9e7ae286fe140d82ed0ac86895e3690 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Thu, 1 Mar 2012 10:36:06 -0500 Subject: [PATCH] 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 --- src/bin/lttng-sessiond/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.34.1