projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Generate bytecodes related to the trigger on reception
[lttng-tools.git]
/
src
/
common
/
event-rule
/
syscall.c
diff --git
a/src/common/event-rule/syscall.c
b/src/common/event-rule/syscall.c
index 826953c21fe6cc965bc1064a8434f0ebea412112..b2feb2c6ecf4c772049d9c41d304544f185959d1 100644
(file)
--- a/
src/common/event-rule/syscall.c
+++ b/
src/common/event-rule/syscall.c
@@
-6,6
+6,7
@@
*/
#include <assert.h>
*/
#include <assert.h>
+#include <common/credentials.h>
#include <common/error.h>
#include <common/macros.h>
#include <common/payload.h>
#include <common/error.h>
#include <common/macros.h>
#include <common/payload.h>
@@
-137,7
+138,8
@@
end:
}
static enum lttng_error_code lttng_event_rule_syscall_generate_filter_bytecode(
}
static enum lttng_error_code lttng_event_rule_syscall_generate_filter_bytecode(
- struct lttng_event_rule *rule, uid_t uid, gid_t gid)
+ struct lttng_event_rule *rule,
+ const struct lttng_credentials *creds)
{
int ret;
enum lttng_error_code ret_code = LTTNG_OK;
{
int ret;
enum lttng_error_code ret_code = LTTNG_OK;
@@
-177,7
+179,7
@@
static enum lttng_error_code lttng_event_rule_syscall_generate_filter_bytecode(
}
ret = run_as_generate_filter_bytecode(
}
ret = run_as_generate_filter_bytecode(
- syscall->internal_filter.filter,
uid, gid
, &bytecode);
+ syscall->internal_filter.filter,
creds
, &bytecode);
if (ret) {
ret_code = LTTNG_ERR_FILTER_INVAL;
}
if (ret) {
ret_code = LTTNG_ERR_FILTER_INVAL;
}
This page took
0.025659 seconds
and
5
git commands to generate.