spec:
kprobes:
call: "sys_connect" syscall: true return: true
spec:
kprobes:
call: "tcp_connect" syscall: false
return: true
spec:
kprobes:
call: "security_socket_connect" syscall: false
return: true
apiVersion: cilium.io/v1alpha1 kind: TracingPolicy
metadata:
name: "bash-readline" spec:
uprobes:
path: "/procRoot/3762319/root/bin/bash" symbols:
"readline" args:
index: 0 type: "string"
"path": "/procRoot/3762319/root/bin/bash", "symbol": "readline",
"policy_name": "bash",
"args": [
{
"string_arg": "root@test-pod-debian-mount:/# "
}
apiVersion: cilium.io/v1alpha1 kind: TracingPolicy
metadata:
name: "bash-readline" spec:
uprobes:
path: "/procRoot/3762319/root/bin/bash" symbols:
"xrealloc" args:
index: 0 type: "string"
"path": "/procRoot/3762319/root/bin/bash", "symbol": "xrealloc",
"policy_name": "bash", "args": [
{
"string_arg": "whoami"
}
spec:
kprobes:
call: "security_file_permission" syscall: false
return: true args:
index: 0 type: "file"
index: 1 type: "int"
returnArg: index: 0 type: "int"
spec:
kprobes:
call: "register_kprobe" syscall: false
return: false args:
index: 0
resolve: "symbol_name" type: "string"