#include <lttngerr.h>
+#include "runas.h"
+
#define CHILD_STACK_SIZE 10485760
struct run_as_data {
--- /dev/null
+#ifndef _RUNAS_H
+#define _RUNAS_H
+
+/*
+ * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
+ * Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; only verion 2
+ * of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include <unistd.h>
+
+int mkdir_recursive_run_as(const char *path, mode_t mode, uid_t uid, gid_t gid);
+int mkdir_run_as(const char *path, mode_t mode, uid_t uid, gid_t gid);
+int open_run_as(const char *path, int flags, mode_t mode, uid_t uid, gid_t gid);
+
+#endif /* _RUNAS_H */
lttng/lttng-ustconsumer.h lttng/lttng-consumer.h
noinst_HEADERS = lttngerr.h lttng-kernel.h lttng-consumerd.h lttng-share.h \
- lttng-sessiond-comm.h lttng-kernel-ctl.h lttng-ht.h runas.h
+ lttng-sessiond-comm.h lttng-kernel-ctl.h lttng-ht.h
+++ /dev/null
-#ifndef _RUNAS_H
-#define _RUNAS_H
-
-/*
- * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
- * Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; only verion 2
- * of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-#include <unistd.h>
-
-int mkdir_recursive_run_as(const char *path, mode_t mode, uid_t uid, gid_t gid);
-int mkdir_run_as(const char *path, mode_t mode, uid_t uid, gid_t gid);
-int open_run_as(const char *path, int flags, mode_t mode, uid_t uid, gid_t gid);
-
-#endif /* _RUNAS_H */
#include <lttng-sessiond-comm.h>
#include <lttng/lttng-kconsumer.h>
#include <lttngerr.h>
-#include <runas.h>
+
+#include "common/runas.h"
extern struct lttng_consumer_global_data consumer_data;
extern int consumer_poll_timeout;
#include <lttng/lttng-ustconsumer.h>
#include <lttng/ust-ctl.h>
#include <lttngerr.h>
-#include <runas.h>
+
+#include "common/runas.h"
extern struct lttng_consumer_global_data consumer_data;
extern int consumer_poll_timeout;
#include <lttng/lttng-consumer.h>
#include <lttngerr.h>
-#include <runas.h>
+#include "common/runas.h"
#include "channel.h"
#include "compat/poll.h"
#include <lttng-sessiond-comm.h>
#include <lttngerr.h>
-#include <runas.h>
+#include "common/runas.h"
#include "session.h"
/*
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
-#include <runas.h>
#include <urcu/compiler.h>
#include <lttngerr.h>
#include <lttng-ht.h>
#include <lttng-share.h>
-#include <runas.h>
+#include "common/runas.h"
#include "ust-app.h"
#include "ust-consumer.h"
#include "ust-ctl.h"