Skip to content

Commit

Permalink
tetragon docs: cut'n'paste write to /etc example
Browse files Browse the repository at this point in the history
Add a cut'n'paste example for writing.

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
  • Loading branch information
jrfastab authored and michi-covalent committed Oct 18, 2023
1 parent e13471e commit 3b67b8e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/content/en/docs/getting-started/file-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@ This will generate a read event (Docker events will omit Kubernetes metadata),
Attempts to write in sensitive directories will similar create an event. For
example attempting to write in `/etc`.

{{< tabpane lang=shell-session >}}
{{< tab Kubernetes >}}
kubectl exec -ti xwing -- bash -c 'echo foo >> /etc/bar'
{{< /tab >}}
{{< tab Docker >}}
cat /etc/shadow
{{< /tab >}}
{{< /tabpane >}}

Will result in the following output in the tetra CLI.

```
🚀 process default/xwing /bin/bash -c "echo foo >> /etc/bar"
📝 write default/xwing /bin/bash /etc/bar
Expand Down

0 comments on commit 3b67b8e

Please sign in to comment.