projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: sessiond: notification: unreachable code in switch-case
[lttng-tools.git]
/
src
/
common
/
runas.c
diff --git
a/src/common/runas.c
b/src/common/runas.c
index 30bf4263aa3d55c365c99a2ff4e57ef61a7614ed..1147296ad3357e21d4fd169ef54f73c78f13512f 100644
(file)
--- a/
src/common/runas.c
+++ b/
src/common/runas.c
@@
-1799,8
+1799,7
@@
error:
LTTNG_HIDDEN
int run_as_generate_filter_bytecode(const char *filter_expression,
LTTNG_HIDDEN
int run_as_generate_filter_bytecode(const char *filter_expression,
- uid_t uid,
- gid_t gid,
+ const struct lttng_credentials *creds,
struct lttng_filter_bytecode **bytecode)
{
int ret;
struct lttng_filter_bytecode **bytecode)
{
int ret;
@@
-1808,6
+1807,8
@@
int run_as_generate_filter_bytecode(const char *filter_expression,
struct run_as_ret run_as_ret = {};
const struct lttng_filter_bytecode *view_bytecode = NULL;
struct lttng_filter_bytecode *local_bytecode = NULL;
struct run_as_ret run_as_ret = {};
const struct lttng_filter_bytecode *view_bytecode = NULL;
struct lttng_filter_bytecode *local_bytecode = NULL;
+ const uid_t uid = lttng_credentials_get_uid(creds);
+ const gid_t gid = lttng_credentials_get_gid(creds);
DBG3("generate_filter_bytecode() from expression=\"%s\" for uid %d and gid %d",
filter_expression, (int) uid, (int) gid);
DBG3("generate_filter_bytecode() from expression=\"%s\" for uid %d and gid %d",
filter_expression, (int) uid, (int) gid);
This page took
0.038503 seconds
and
4
git commands to generate.