projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Create all trace directories and files with client user credentials
[lttng-tools.git]
/
liblttng-consumer
/
lttng-consumer.c
diff --git
a/liblttng-consumer/lttng-consumer.c
b/liblttng-consumer/lttng-consumer.c
index 893df720882b7afd6798e789ca7fd90c967836fd..0811e68ca8e8368c7695f92f37a44c906b42b7c0 100644
(file)
--- a/
liblttng-consumer/lttng-consumer.c
+++ b/
liblttng-consumer/lttng-consumer.c
@@
-174,7
+174,9
@@
struct lttng_consumer_stream *consumer_allocate_stream(
enum lttng_consumer_stream_state state,
uint64_t mmap_len,
enum lttng_event_output output,
enum lttng_consumer_stream_state state,
uint64_t mmap_len,
enum lttng_event_output output,
- const char *path_name)
+ const char *path_name,
+ uid_t uid,
+ gid_t gid)
{
struct lttng_consumer_stream *stream;
int ret;
{
struct lttng_consumer_stream *stream;
int ret;
@@
-199,6
+201,8
@@
struct lttng_consumer_stream *consumer_allocate_stream(
stream->mmap_len = mmap_len;
stream->mmap_base = NULL;
stream->output = output;
stream->mmap_len = mmap_len;
stream->mmap_base = NULL;
stream->output = output;
+ stream->uid = uid;
+ stream->gid = gid;
strncpy(stream->path_name, path_name, PATH_MAX - 1);
stream->path_name[PATH_MAX - 1] = '\0';
strncpy(stream->path_name, path_name, PATH_MAX - 1);
stream->path_name[PATH_MAX - 1] = '\0';
This page took
0.024896 seconds
and
4
git commands to generate.