Skip to content

Conversation

tixxdz
Copy link
Member

@tixxdz tixxdz commented Sep 8, 2025

No description provided.

1. Tests starts with root uid 0

2. Tests executes drop-privileges, in Tetragon userspace cached process
   credentials are euid == 0

3. drop-privileges changes its reuid to 1879048188
   but cached state is still uid/euid == 0 since execve snapshot.

   But in kernel, current credentials are uid/euid == 1879048188. These
   are the ones that we use for matching.

4. drop-privileges executes /usr/bin/echo
   In tetragon userspace uid == 0, but in kernel current uid == 1879048188

   In tracing policy we match against current credentials 1879048188
   In Process json output checker we match against cached userspace state
   credentials uid/euid == 0.

5. /usr/bin/echo starts with uid/euid == 1879048188
   In tetragon uid == 1879048188 same in kernel current uid == 1879048188

Signed-off-by: Djalal Harouni <[email protected]>
@tixxdz tixxdz requested a review from a team as a code owner September 8, 2025 08:22
@tixxdz tixxdz requested a review from jrfastab September 8, 2025 08:22
@tixxdz tixxdz marked this pull request as draft September 8, 2025 08:22
@tixxdz tixxdz added the release-note/minor This PR introduces a minor user-visible change label Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/minor This PR introduces a minor user-visible change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant