projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: no need to use run_as_open in the relayd
[lttng-tools.git]
/
src
/
bin
/
lttng-relayd
/
main.c
diff --git
a/src/bin/lttng-relayd/main.c
b/src/bin/lttng-relayd/main.c
index 9a2b3bda7c010e9c8da7ad7a7b0345c9e4697d03..156fc83ee6d534599bbb6d44a1b747099eeb08c2 100644
(file)
--- a/
src/bin/lttng-relayd/main.c
+++ b/
src/bin/lttng-relayd/main.c
@@
-863,8
+863,12
@@
int relay_add_stream(struct lttcomm_relayd_hdr *recv_hdr,
goto end;
}
goto end;
}
+ /*
+ * No need to use run_as API here because whatever we receives, the relayd
+ * uses its own credentials for the stream files.
+ */
ret = utils_create_stream_file(stream->path_name, stream->channel_name,
ret = utils_create_stream_file(stream->path_name, stream->channel_name,
- stream->tracefile_size, 0,
getuid(), getgid()
);
+ stream->tracefile_size, 0,
-1, -1
);
if (ret < 0) {
ERR("Create output file");
goto end;
if (ret < 0) {
ERR("Create output file");
goto end;
@@
-1625,7
+1629,7
@@
int relay_process_data(struct relay_command *cmd, struct lttng_ht *streams_ht)
stream->tracefile_size) {
ret = utils_rotate_stream_file(stream->path_name,
stream->channel_name, stream->tracefile_size,
stream->tracefile_size) {
ret = utils_rotate_stream_file(stream->path_name,
stream->channel_name, stream->tracefile_size,
- stream->tracefile_count,
getuid(), getgid()
,
+ stream->tracefile_count,
-1, -1
,
stream->fd, &(stream->tracefile_count_current));
if (ret < 0) {
ERR("Rotating output file");
stream->fd, &(stream->tracefile_count_current));
if (ret < 0) {
ERR("Rotating output file");
This page took
0.027713 seconds
and
5
git commands to generate.