Skip to content

Commit 7218e38

Browse files
committed
feat: new API with capabilities
Ref: EXP-2878 Signed-off-by: Mauro Sardara <[email protected]>
1 parent 382270f commit 7218e38

25 files changed

+536
-122
lines changed

avro/avdl/event/fileevent.avdl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ record FileEvent {
2626
int opFlags;
2727
sysflow.type.FOID fileOID;
2828
int ret;
29+
string tCapPermitted;
30+
string tCapEffective;
31+
string tCapInheritable;
2932
union{null, sysflow.type.FOID} newFileOID;
3033
}
3134
}

avro/avdl/event/networkevent.avdl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,8 @@ record NetworkEvent {
3030
int dport;
3131
int proto;
3232
int ret;
33+
string tCapPermitted;
34+
string tCapEffective;
35+
string tCapInheritable;
3336
}
3437
}

avro/avdl/event/processevent.avdl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@ record ProcessEvent {
2626
int opFlags;
2727
array<string> args;
2828
int ret;
29+
string tCapPermitted;
30+
string tCapEffective;
31+
string tCapInheritable;
2932
}
3033
}

avro/avdl/flow/fileflow.avdl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ record FileFlow {
2323
sysflow.type.OID procOID; // host ID + monotonic process creation time + host PID
2424
long ts;
2525
long tid;
26+
string tCapPermitted;
27+
string tCapEffective;
28+
string tCapInheritable;
2629
int opFlags;
2730
int openFlags;
2831
long endTs;

avro/avdl/flow/networkflow.avdl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ record NetworkFlow {
2323
sysflow.type.OID procOID; // host ID + monotonic process creation time + host PID
2424
long ts;
2525
long tid;
26+
string tCapPermitted;
27+
string tCapEffective;
28+
string tCapInheritable;
2629
int opFlags;
2730
long endTs;
2831
int sip;

avro/avpr/sysflow.avpr

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@
8282
}, {
8383
"name" : "tid",
8484
"type" : "long"
85+
}, {
86+
"name" : "tCapPermitted",
87+
"type" : "string"
88+
}, {
89+
"name" : "tCapEffective",
90+
"type" : "string"
91+
}, {
92+
"name" : "tCapInheritable",
93+
"type" : "string"
8594
}, {
8695
"name" : "opFlags",
8796
"type" : "int"
@@ -132,6 +141,15 @@
132141
}, {
133142
"name" : "tid",
134143
"type" : "long"
144+
}, {
145+
"name" : "tCapPermitted",
146+
"type" : "string"
147+
}, {
148+
"name" : "tCapEffective",
149+
"type" : "string"
150+
}, {
151+
"name" : "tCapInheritable",
152+
"type" : "string"
135153
}, {
136154
"name" : "opFlags",
137155
"type" : "int"
@@ -185,6 +203,15 @@
185203
}, {
186204
"name" : "ret",
187205
"type" : "int"
206+
}, {
207+
"name" : "tCapPermitted",
208+
"type" : "string"
209+
}, {
210+
"name" : "tCapEffective",
211+
"type" : "string"
212+
}, {
213+
"name" : "tCapInheritable",
214+
"type" : "string"
188215
} ]
189216
}, {
190217
"type" : "record",
@@ -220,6 +247,15 @@
220247
}, {
221248
"name" : "ret",
222249
"type" : "int"
250+
}, {
251+
"name" : "tCapPermitted",
252+
"type" : "string"
253+
}, {
254+
"name" : "tCapEffective",
255+
"type" : "string"
256+
}, {
257+
"name" : "tCapInheritable",
258+
"type" : "string"
223259
} ]
224260
}, {
225261
"type" : "record",
@@ -243,6 +279,15 @@
243279
}, {
244280
"name" : "ret",
245281
"type" : "int"
282+
}, {
283+
"name" : "tCapPermitted",
284+
"type" : "string"
285+
}, {
286+
"name" : "tCapEffective",
287+
"type" : "string"
288+
}, {
289+
"name" : "tCapInheritable",
290+
"type" : "string"
246291
}, {
247292
"name" : "newFileOID",
248293
"type" : [ "null", "sysflow.type.FOID" ]

avro/avsc/FileEvent.avsc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@
3636
}, {
3737
"name" : "ret",
3838
"type" : "int"
39+
}, {
40+
"name" : "tCapPermitted",
41+
"type" : "string"
42+
}, {
43+
"name" : "tCapEffective",
44+
"type" : "string"
45+
}, {
46+
"name" : "tCapInheritable",
47+
"type" : "string"
3948
}, {
4049
"name" : "newFileOID",
4150
"type" : [ "null", "sysflow.type.FOID" ]

avro/avsc/FileFlow.avsc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@
2222
}, {
2323
"name" : "tid",
2424
"type" : "long"
25+
}, {
26+
"name" : "tCapPermitted",
27+
"type" : "string"
28+
}, {
29+
"name" : "tCapEffective",
30+
"type" : "string"
31+
}, {
32+
"name" : "tCapInheritable",
33+
"type" : "string"
2534
}, {
2635
"name" : "opFlags",
2736
"type" : "int"

avro/avsc/NetworkEvent.avsc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,14 @@
4343
}, {
4444
"name" : "ret",
4545
"type" : "int"
46+
}, {
47+
"name" : "tCapPermitted",
48+
"type" : "string"
49+
}, {
50+
"name" : "tCapEffective",
51+
"type" : "string"
52+
}, {
53+
"name" : "tCapInheritable",
54+
"type" : "string"
4655
} ]
4756
}

avro/avsc/NetworkFlow.avsc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@
2222
}, {
2323
"name" : "tid",
2424
"type" : "long"
25+
}, {
26+
"name" : "tCapPermitted",
27+
"type" : "string"
28+
}, {
29+
"name" : "tCapEffective",
30+
"type" : "string"
31+
}, {
32+
"name" : "tCapInheritable",
33+
"type" : "string"
2534
}, {
2635
"name" : "opFlags",
2736
"type" : "int"

0 commit comments

Comments
 (0)