Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tetragon: Load base sensor via sensor manager #3045

Merged
merged 7 commits into from
Nov 4, 2024
Merged

Commits on Nov 4, 2024

  1. tetragon: Add load mutex for sensor manager

    We already lock access to the collections and we depend on the
    queue serialize policy/sensor loads/unloads.
    
    Following change will remove the queue, but we still want to keep
    the loads/unloads serialized, so adding lock for that.
    
    Signed-off-by: Jiri Olsa <[email protected]>
    olsajiri committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    adda09b View commit details
    Browse the repository at this point in the history
  2. tetragon: Remove go routine from sensor manager

    Removing go routine from sensor manager and calling the handler
    routines directly.
    
    Aslo removing LoadArg/UnloadArg types, which do not seem to
    be used anymore.
    
    Signed-off-by: Jiri Olsa <[email protected]>
    olsajiri committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    913c3af View commit details
    Browse the repository at this point in the history
  3. tetragon: Remove channel setup from sensor manager functions

    Removing channel setup from sensor manager functions, because with
    go routine removed there's no longer need for that.
    
    Signed-off-by: Jiri Olsa <[email protected]>
    olsajiri committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    fcf64f5 View commit details
    Browse the repository at this point in the history
  4. tetragon: Move policyLister under sensor manager handler

    Moving policyLister under sensor manager handler to keep
    all the handler routines together now that we don't have
    the go routine.
    
    Signed-off-by: Jiri Olsa <[email protected]>
    olsajiri committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    451e7a4 View commit details
    Browse the repository at this point in the history
  5. tetragon: Load initial sensor via sensor manager

    Loading initial sensor via sensor manager so it stores all the
    loaded sensors/programs. So far we kept it separated but having
    it in one place is handy for metrics requesting this data.
    
    Moving the load before the server is started so we don't need to
    "wait" for that. This way we can remove the sensorMgWait channel.
    
    Signed-off-by: Jiri Olsa <[email protected]>
    olsajiri committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    cf75677 View commit details
    Browse the repository at this point in the history
  6. tetragon: Remove StopSensorManager function

    We removed the go routine, so it's no longer needed.
    
    Signed-off-by: Jiri Olsa <[email protected]>
    olsajiri committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    2201b76 View commit details
    Browse the repository at this point in the history
  7. tetragon: Remove ctx argument from getTestSensorManager function

    Now we removed StopSensorManager call from getTestSensorManager
    we no longer need it to have the ctx argument.
    
    Signed-off-by: Jiri Olsa <[email protected]>
    olsajiri committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    de29d49 View commit details
    Browse the repository at this point in the history