Fix security permission on lttng run directory
authorDavid Goulet <dgoulet@efficios.com>
Thu, 1 Mar 2012 15:36:06 +0000 (10:36 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 1 Mar 2012 15:36:06 +0000 (10:36 -0500)
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 <dgoulet@efficios.com>
src/bin/lttng-sessiond/main.c

index 93417bca04fe213276ed88189d07e11e72a404b3..f82f05e00b12d3521649ba6f6d2b9b0003c25c92 100644 (file)
@@ -3996,7 +3996,7 @@ static int set_permissions(char *rundir)
        }
 
        /* Ensure tracing group can search the run dir */
        }
 
        /* 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");
        if (ret < 0) {
                ERR("Unable to set permissions on %s", rundir);
                perror("chmod");
This page took 0.026889 seconds and 4 git commands to generate.