projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix runas namespace
[lttng-tools.git]
/
lttng-sessiond
/
main.c
diff --git
a/lttng-sessiond/main.c
b/lttng-sessiond/main.c
index f7cd81027a43d103bed2499bc4e2bf8b257061be..a2532d0479463c6152c895efe90e5f8d3546080c 100644
(file)
--- a/
lttng-sessiond/main.c
+++ b/
lttng-sessiond/main.c
@@
-44,7
+44,7
@@
#include <lttng/lttng-consumer.h>
#include <lttngerr.h>
#include <lttng/lttng-consumer.h>
#include <lttngerr.h>
-#include
<runas.h>
+#include
"common/runas.h"
#include "channel.h"
#include "compat/poll.h"
#include "channel.h"
#include "compat/poll.h"
@@
-1749,7
+1749,7
@@
static int mount_debugfs(char *path)
int ret;
char *type = "debugfs";
int ret;
char *type = "debugfs";
- ret =
mkdir_recursive_run_as
(path, S_IRWXU | S_IRWXG, geteuid(), getegid());
+ ret =
run_as_mkdir_recursive
(path, S_IRWXU | S_IRWXG, geteuid(), getegid());
if (ret < 0) {
PERROR("Cannot create debugfs path");
goto error;
if (ret < 0) {
PERROR("Cannot create debugfs path");
goto error;
@@
-1904,7
+1904,7
@@
static int create_ust_session(struct ltt_session *session,
goto error;
}
goto error;
}
- ret =
mkdir_recursive_run_as
(lus->pathname, S_IRWXU | S_IRWXG,
+ ret =
run_as_mkdir_recursive
(lus->pathname, S_IRWXU | S_IRWXG,
session->uid, session->gid);
if (ret < 0) {
if (ret != -EEXIST) {
session->uid, session->gid);
if (ret < 0) {
if (ret != -EEXIST) {
@@
-1954,7
+1954,7
@@
static int create_kernel_session(struct ltt_session *session)
session->kernel_session->consumer_fd = kconsumer_data.cmd_sock;
}
session->kernel_session->consumer_fd = kconsumer_data.cmd_sock;
}
- ret =
mkdir_recursive_run_as
(session->kernel_session->trace_path,
+ ret =
run_as_mkdir_recursive
(session->kernel_session->trace_path,
S_IRWXU | S_IRWXG, session->uid, session->gid);
if (ret < 0) {
if (ret != -EEXIST) {
S_IRWXU | S_IRWXG, session->uid, session->gid);
if (ret < 0) {
if (ret != -EEXIST) {
This page took
0.024449 seconds
and
4
git commands to generate.