Skip to content

Commit

Permalink
policylibrary: rename to privileges-raise.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Djalal Harouni <[email protected]>
  • Loading branch information
tixxdz committed Jan 10, 2024
1 parent 17f5673 commit bb8d654
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ best-practice to identify when privileges are raised.

### Policy

The [privileges-setuid-root.yaml](https://raw.githubusercontent.com/cilium/tetragon/main/examples/policylibrary/privileges/privileges-setuid-root.yaml) is a catch all to the various interfaces of `setuid()` and `setgid()` to root.
The [privileges-raise.yaml](https://raw.githubusercontent.com/cilium/tetragon/main/examples/policylibrary/privileges/privileges-raise.yaml) is a catch all to the various interfaces of `setuid()` and `setgid()` to root.

### Example jq Filter

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# This 'privileges-setuid-root' Tracing Policy monitors processes trying
# to change their uids/gids to user root.
# This 'privileges-raise' Tracing Policy monitors processes trying
# to raise their privileges:
#
# 1. Change their uids/gids to user root.
#
# __sys_setuid
# - __x64_sys_setuid
Expand Down Expand Up @@ -53,7 +55,9 @@
apiVersion: cilium.io/v1alpha1
kind: TracingPolicy
metadata:
name: "privileges-setuid-root.yaml"
name: "privileges-raise"
annotations:
description: "Detects privileges raising operations"
spec:
kprobes:
- call: "__sys_setuid"
Expand Down

0 comments on commit bb8d654

Please sign in to comment.