-
Notifications
You must be signed in to change notification settings - Fork 165
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
Ssprod 23814 add addl event init method #1052
Ssprod 23814 add addl event init method #1052
Commits on Dec 15, 2022
-
fix(driver): use
extract__egid
instread ofextract__euid
helperSigned-off-by: Andrea Terzolo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ac2e18a - Browse repository at this point
Copy the full SHA ac2e18aView commit details -
fix: increase the number of attempts to retrieve container info from CRI
This change increases the number of retries to retrieve container information from CRI API from 3 to 5, as several failures were observed with the maximum number of attempts set to 3. Signed-off-by: Iacopo Rozzo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ffad57e - Browse repository at this point
Copy the full SHA ffad57eView commit details -
fix(driver-modern-bpf): optimize exctract__tty lookups
Signed-off-by: Melissa Kilby <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ff9a370 - Browse repository at this point
Copy the full SHA ff9a370View commit details -
cleanup(driver-bpf): optimize tty lookup
Signed-off-by: Melissa Kilby <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 352837d - Browse repository at this point
Copy the full SHA 352837dView commit details -
cleanup(driver-modern-bpf): re-use inode lookup
Signed-off-by: Melissa Kilby <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1a02109 - Browse repository at this point
Copy the full SHA 1a02109View commit details -
cleanup(driver-modern-bpf): add comment to tty extraction
Co-authored-by: Andrea Terzolo <[email protected]> Signed-off-by: Melissa Kilby <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 01830c3 - Browse repository at this point
Copy the full SHA 01830c3View commit details -
cleanup(driver-modern-bpf): re-use inode lookup for sched_process_exec
Signed-off-by: Melissa Kilby <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 76bff97 - Browse repository at this point
Copy the full SHA 76bff97View commit details -
fix: set max retries to 5 when using CRI only
This change makes sure that 5 maximum retries to retrieve container information are used with CRI only. It puts back the number of retries to 3 for all the other container runtimes. It also adjusts the maximum time to complete all their attempts to take into account the increased of retries. Signed-off-by: Iacopo Rozzo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 989db97 - Browse repository at this point
Copy the full SHA 989db97View commit details -
chore(driver): support external skeleton build for modern bpf
Signed-off-by: Andrea Terzolo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1d3f296 - Browse repository at this point
Copy the full SHA 1d3f296View commit details -
Signed-off-by: Andrea Terzolo <[email protected]> Co-authored-by: Hendrik Brueckner <[email protected]> Co-authored-by: Mauro Ezequiel Moltrasio <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4535cd8 - Browse repository at this point
Copy the full SHA 4535cd8View commit details -
docs: add documentation for the
MODERN_BPF_SKEL_DIR
optionSigned-off-by: Andrea Terzolo <[email protected]> Co-authored-by: Hendrik Brueckner <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b82bc3b - Browse repository at this point
Copy the full SHA b82bc3bView commit details -
fix(sinsp): format PT_ABSTIME values
Signed-off-by: Grzegorz Nosek <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 14f0137 - Browse repository at this point
Copy the full SHA 14f0137View commit details -
update(ci): enable gh actions jobs on maintainers/ branches
Signed-off-by: Andrea Terzolo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e8ea980 - Browse repository at this point
Copy the full SHA e8ea980View commit details -
update(userspace/libscap): avoid owning events offset in test engine
Signed-off-by: Jason Dellaluce <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d937062 - Browse repository at this point
Copy the full SHA d937062View commit details -
fix(userspace/libsinsp/test): own events offset in test engine
Signed-off-by: Jason Dellaluce <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 82f2f4c - Browse repository at this point
Copy the full SHA 82f2f4cView commit details -
chore(userspace): manage not bundled libelf dependency adding a custo…
…m target Signed-off-by: Andrea Terzolo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 725732a - Browse repository at this point
Copy the full SHA 725732aView commit details
Commits on Jan 17, 2023
-
update(userspace): compute the sum of all drops in modern probe
Signed-off-by: Andrea Terzolo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 258ec63 - Browse repository at this point
Copy the full SHA 258ec63View commit details -
fix(driver): drops should be considered in the total number of events…
… seen by drivers Signed-off-by: Andrea Terzolo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 04a0aa8 - Browse repository at this point
Copy the full SHA 04a0aa8View commit details -
update(driver): improve logging in case of failed bpf loading
Signed-off-by: Andrea Terzolo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0fac704 - Browse repository at this point
Copy the full SHA 0fac704View commit details -
update(build): update libcurl to 7.87.0
Signed-off-by: Luca Guerra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 772397f - Browse repository at this point
Copy the full SHA 772397fView commit details -
fix: handle capset_x missing thread_info
Signed-off-by: Adnan Ali <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6f9569d - Browse repository at this point
Copy the full SHA 6f9569dView commit details -
update(build): update openssl to 1.1.1q
Signed-off-by: Luca Guerra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 13800c9 - Browse repository at this point
Copy the full SHA 13800c9View commit details -
new(driver): add a new bpf map to retrieve PPM_SC codes
Signed-off-by: Andrea Terzolo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0c3d243 - Browse repository at this point
Copy the full SHA 0c3d243View commit details -
new: implement generic events support in modern bpf probe
Signed-off-by: Andrea Terzolo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3e825d4 - Browse repository at this point
Copy the full SHA 3e825d4View commit details -
fix(userspace/libsinsp): avoid exception failure on unknown k8s node …
…name Signed-off-by: Jason Dellaluce <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1b54028 - Browse repository at this point
Copy the full SHA 1b54028View commit details -
fix: correctly free the state in modern bpf probe
Signed-off-by: Andrea Terzolo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cea6078 - Browse repository at this point
Copy the full SHA cea6078View commit details -
new: support multiple CPUs per buffer
Signed-off-by: Andrea Terzolo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 453cd0e - Browse repository at this point
Copy the full SHA 453cd0eView commit details -
update: propagate support to scap-open
Signed-off-by: Andrea Terzolo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8b38418 - Browse repository at this point
Copy the full SHA 8b38418View commit details -
update: propagate support to sinsp
Signed-off-by: Andrea Terzolo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ff44778 - Browse repository at this point
Copy the full SHA ff44778View commit details -
update: set online_only as default in scap-open
Signed-off-by: Andrea Terzolo <[email protected]> Co-authored-by: Hendrik Brueckner <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 88c7af6 - Browse repository at this point
Copy the full SHA 88c7af6View commit details -
tests: add new test suite for the modern probe
Signed-off-by: Andrea Terzolo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5076613 - Browse repository at this point
Copy the full SHA 5076613View commit details -
fix(test): fixed modern bpf tests build.
Signed-off-by: Federico Di Pierro <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f4b199f - Browse repository at this point
Copy the full SHA f4b199fView commit details
Commits on Jan 25, 2023
-
fix: handle unshare_setns_x missing thread_info
Signed-off-by: Adnan Ali <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 41ddb69 - Browse repository at this point
Copy the full SHA 41ddb69View commit details -
chore: cleanup thread_info nullpointer checks in parsers.cpp
Signed-off-by: Adnan Ali <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0b3c41d - Browse repository at this point
Copy the full SHA 0b3c41dView commit details
Commits on Jan 31, 2023
-
fix(userspace/libscap): release resources on return
Signed-off-by: Jason Dellaluce <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 333394b - Browse repository at this point
Copy the full SHA 333394bView commit details -
update(userspace): narrow down buf boundaries
Signed-off-by: Jason Dellaluce <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2fb9b3c - Browse repository at this point
Copy the full SHA 2fb9b3cView commit details -
chore(ci): add fake
test-drivers-x86
job.Signed-off-by: Federico Di Pierro <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3e6aa6e - Browse repository at this point
Copy the full SHA 3e6aa6eView commit details
Commits on Feb 17, 2023
-
fix(libcurl): set path to ca-certificates at build time for libcurl
Signed-off-by: Aldo Lacuku <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 35702f2 - Browse repository at this point
Copy the full SHA 35702f2View commit details -
cleanup(libsinsp,libscap,libpman): cleanups, fixes for return values,…
… memory management, allocations Signed-off-by: Luca Guerra <[email protected]> Co-authored-by: Roberto Scolaro <[email protected]> Co-authored-by: Federico Di Pierro <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9defcf2 - Browse repository at this point
Copy the full SHA 9defcf2View commit details -
fix(libscap): more readable cleanup in expand_buffer
Signed-off-by: Luca Guerra <[email protected]> Co-authored-by: Federico Di Pierro <[email protected]> Co-authored-by: Roberto Scolaro <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cc03a01 - Browse repository at this point
Copy the full SHA cc03a01View commit details -
fix(libsinsp): do not attempt to free the storage buffer that will be…
… cleaned by the destructor Signed-off-by: Luca Guerra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4795126 - Browse repository at this point
Copy the full SHA 4795126View commit details -
update(libsinsp): check gmtime as well
Signed-off-by: Luca Guerra <[email protected]> Co-authored-by: Federico Di Pierro <[email protected]> Co-authored-by: Roberto Scolaro <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4b9d30c - Browse repository at this point
Copy the full SHA 4b9d30cView commit details -
Update userspace/libsinsp/threadinfo.cpp
Co-authored-by: Jason Dellaluce <[email protected]> Signed-off-by: Luca Guerra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 40a8d1a - Browse repository at this point
Copy the full SHA 40a8d1aView commit details -
Update userspace/libsinsp/threadinfo.cpp
Co-authored-by: Jason Dellaluce <[email protected]> Signed-off-by: Luca Guerra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c2caaef - Browse repository at this point
Copy the full SHA c2caaefView commit details -
Update userspace/libsinsp/threadinfo.cpp
Co-authored-by: Jason Dellaluce <[email protected]> Signed-off-by: Luca Guerra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 43ade77 - Browse repository at this point
Copy the full SHA 43ade77View commit details -
Update userspace/libsinsp/threadinfo.cpp
Co-authored-by: Jason Dellaluce <[email protected]> Signed-off-by: Luca Guerra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 95e61d0 - Browse repository at this point
Copy the full SHA 95e61d0View commit details -
Update userspace/libsinsp/threadinfo.cpp
Co-authored-by: Jason Dellaluce <[email protected]> Signed-off-by: Luca Guerra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c43e2c8 - Browse repository at this point
Copy the full SHA c43e2c8View commit details -
Update userspace/libsinsp/threadinfo.cpp
Co-authored-by: Jason Dellaluce <[email protected]> Signed-off-by: Luca Guerra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e447472 - Browse repository at this point
Copy the full SHA e447472View commit details -
update(chisel): skip invalid fd tables
Signed-off-by: Luca Guerra <[email protected]> Co-authored-by: Jason Dellaluce <[email protected]> Co-authored-by: Roberto Scolaro <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ad8feb7 - Browse repository at this point
Copy the full SHA ad8feb7View commit details -
update(libsinsp): error if it's not possible to store the last event
Signed-off-by: Luca Guerra <[email protected]> Co-authored-by: Jason Dellaluce <[email protected]> Co-authored-by: Roberto Scolaro <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f0ae10c - Browse repository at this point
Copy the full SHA f0ae10cView commit details -
Signed-off-by: Melissa Kilby <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 064bc75 - Browse repository at this point
Copy the full SHA 064bc75View commit details -
update(libsinsp): fix reduced_ variable names
Signed-off-by: Luca Guerra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for abcacf9 - Browse repository at this point
Copy the full SHA abcacf9View commit details
Commits on Feb 28, 2023
-
fix(driver): fix build on linux-6.2
Attributes in "struct device*" are now const, so add a matching prototype for ppm_devnode(). Fixes #918 Signed-off-by: Holger Hoffstätte <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 01ad103 - Browse repository at this point
Copy the full SHA 01ad103View commit details -
fix(driver/bpf): fixed bpf probe build on kernel >= 6.2
NOTE: this needed a small fix in release branch because `bpf_probe_read_kernel` is not present there. Signed-off-by: Federico Di Pierro <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5a7193c - Browse repository at this point
Copy the full SHA 5a7193cView commit details -
fix(bpf): fixed a couple of clang15 verifier issues.
NOTE: it needed some fixes because `__bpf_val_to_ring` is now taking an enum as last param in master. Signed-off-by: Federico Di Pierro <[email protected]> Co-authored-by: Andrea Terzolo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4c7e2ea - Browse repository at this point
Copy the full SHA 4c7e2eaView commit details -
update(driver): updated API_VERSION to 3.0.1 since there were bugfixes.
Signed-off-by: Federico Di Pierro <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1127020 - Browse repository at this point
Copy the full SHA 1127020View commit details
Commits on Mar 9, 2023
-
fix(userspace/libsinsp): correct inizialization of m_flags
Signed-off-by: Roberto Scolaro <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 49a1fed - Browse repository at this point
Copy the full SHA 49a1fedView commit details -
refactor(userspace): moved flags to args
Signed-off-by: Roberto Scolaro <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6b98d41 - Browse repository at this point
Copy the full SHA 6b98d41View commit details
Commits on Mar 16, 2023
-
cleanup(libsinsp,libscap,libpman): cleanups, fixes for return values,…
… memory management, allocations Signed-off-by: Luca Guerra <[email protected]> Co-authored-by: Roberto Scolaro <[email protected]> Co-authored-by: Federico Di Pierro <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c4b939e - Browse repository at this point
Copy the full SHA c4b939eView commit details -
Enhancements to initial scan of /proc, for supportability
- Support terminating scan after specified timeout - Support periodic log messages to report progress - API to specify timeout, log interval, and log function - Add last PID and total FDs processed, to /proc scan progress messages - Enhance scap_open args and logic to record debug_log_fn and parameters - Reworked /proc scan to reduce complexity and nesting depth - Pass through API to specify log/timeout parameters to libscap /proc scan Signed-off-by: Joseph Pittman <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 035c86b - Browse repository at this point
Copy the full SHA 035c86bView commit details -
Track container user info and expose via user.name
Changes to support tracking how a container was configured with an initial user and make that info available as user.name for CONTAINER_JSON events: 1. Add a "container user" field m_container_user to container_info. By default, the value is "<NA>". 2. In the docker and cri container engine resolvers, parse any configured user info out of the json response and set m_container_user. 3. Serialize the parsed username to the json blob that comprises a CONTAINER_JSON event, and parse it out of the json blob when parsing a CONTAINER_JSON event. 4. When creating the fake threadinfo that is attached to a container event, also set m_exe to "container:<id>". 5. For the proc.name filtercheck, if the event type is container_json, return not the thread uid but the container user. This ends up being more robust in the face of containers where the initial process might exec and then setuid than a different user. This tracks the configured user rather than the uids of processes in the container, which might change. Signed-off-by: Mark Stemm <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 826df27 - Browse repository at this point
Copy the full SHA 826df27View commit details -
keep lookup history when refreshing cache
Signed-off-by: vadim.zyarko <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bdf0d26 - Browse repository at this point
Copy the full SHA bdf0d26View commit details -
code reformat, update for logging
Signed-off-by: vadim.zyarko <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c77c752 - Browse repository at this point
Copy the full SHA c77c752View commit details -
Add procfs_utils.ut.cpp to the test binary
Signed-off-by: Grzegorz Nosek <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c30fa38 - Browse repository at this point
Copy the full SHA c30fa38View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2849c90 - Browse repository at this point
Copy the full SHA 2849c90View commit details -
This reverts a part of c4370e7
Configuration menu - View commit details
-
Copy full SHA for 5eca840 - Browse repository at this point
Copy the full SHA 5eca840View commit details -
Make sinsp remove_inactive_threads() method public (#54)
* Make sinsp remove_inactive_threads() method public In the Sysdig agent's Secure_Light mode, the agent_diagnostic_metrics_sender functions as a lightweight version of the sinsp_analyzer, and needs similar access to the private method remove_inactive_threads(). This PR makes the method public.
Configuration menu - View commit details
-
Copy full SHA for 62adb70 - Browse repository at this point
Copy the full SHA 62adb70View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e2816f - Browse repository at this point
Copy the full SHA 5e2816fView commit details -
Add special case code to work around syscall default behavior
New functionality pulled from falcosecurity/libs, introduces the ability for the scap_open_* callers to specify initial system calls of interest; if none are specified, default behavior is supposed to match revert to 'capture all system calls'. But due to a bug in the falcosecurity/libs code, the 'default' behavior omits the capturing of some system calls, including execve. This change implements a workaround to the bug, forcing the correct default.
Configuration menu - View commit details
-
Copy full SHA for 5518104 - Browse repository at this point
Copy the full SHA 5518104View commit details -
Changes needed for Sysdig agent to support aarch64 (64-bit ARM) and s…
…390x (zLinux) architectures - Fix Little-Endian byte-ordering assumptions in HTTP parsing and IP address validation code - Adjust set of LUA APIs used, to allow interoperability with the different LUA versions available for the different architectures [SMAGENT-3292] Fix unterminated comment block to re-enable RAW_BREAKPOINTS for x86
Configuration menu - View commit details
-
Copy full SHA for dbaa2ea - Browse repository at this point
Copy the full SHA dbaa2eaView commit details -
Compile eBPF probe with -Wno-unknown-attributes
Sysdig agent containers use clang-7 to build the eBPF probe. That version of clang is too old to support some of the compiler attributes which appear in the source code for more modern kernel versions. So disable warnings associated with unknown attributes.
Configuration menu - View commit details
-
Copy full SHA for 1fff512 - Browse repository at this point
Copy the full SHA 1fff512View commit details -
perf(sinsp): populate cmdline when setting threadinfo command args to…
… eliminate repeated string concats.
Configuration menu - View commit details
-
Copy full SHA for 641cd57 - Browse repository at this point
Copy the full SHA 641cd57View commit details -
fix(driver): silence drop enter/exit event delayed insert messages (#38)
such messages might end up flooding kernel logs. Silence them unless the "verbose" module parameter is enabled. Also, add information about the consumer. Signed-off-by: Gerlando Falauto <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f021921 - Browse repository at this point
Copy the full SHA f021921View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a29187 - Browse repository at this point
Copy the full SHA 1a29187View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca0b1df - Browse repository at this point
Copy the full SHA ca0b1dfView commit details -
Fix CRI image tag detection (#50)
When we take the image info from imageRef and it does not contain the tag, we properly set `m_imagetag` but `m_image` is left without the tag. Fix that by appending `:tag` to m_image when needed.
Configuration menu - View commit details
-
Copy full SHA for e91bafa - Browse repository at this point
Copy the full SHA e91bafaView commit details -
Workaround Linux on ARM event-generation deficiencies
On ARM, Linux does not generate EXECVE_EXIT events, nor does it generate CLONE_EXIT events to the child process. libsinsp relies upon these events to maintain complete and up-to-date threadinfo state. Workaround this issue by using /proc scanning to fill in threadinfo state after CLONE and EXEC.
Configuration menu - View commit details
-
Copy full SHA for e6684fd - Browse repository at this point
Copy the full SHA e6684fdView commit details -
Enable CLONE_EXIT_TO_CHILD workaround on s390x
zLinux (Linux on s390x) does not generate CLONE_EXIT_TO_CHILD ptrace events. Enable the existing workaround for this misbehavior, for the s390x platform.
Configuration menu - View commit details
-
Copy full SHA for d731129 - Browse repository at this point
Copy the full SHA d731129View commit details -
Fix logic to recognize and avoid reporting expected TID collisions
On ARM and s390x platforms, Linux ptrace fails to report CLONE_EXIT_TO_CHILD events. Workaround logic may trigger TID collision logic in CLONE_EXIT_TO_PARENT handler, for certain expected cases. In these expected cases, we want the benefits of the TID collision logic -- deleting and replacing partially-populated child threadinfo, but not the TID collision logging and watchdog timer behavior. The logic to detect these expected cases and avoid the logging, had a bug that caused some expected cases to not be detected.
Configuration menu - View commit details
-
Copy full SHA for 42eff2e - Browse repository at this point
Copy the full SHA 42eff2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f08d3f2 - Browse repository at this point
Copy the full SHA f08d3f2View commit details -
Workaround for `fatal: unsafe repository (REPO is owned by someone el…
…se)` See actions/checkout#760 for context
Configuration menu - View commit details
-
Copy full SHA for e14e7a5 - Browse repository at this point
Copy the full SHA e14e7a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6bfb1d - Browse repository at this point
Copy the full SHA d6bfb1dView commit details -
remove redundant procfs_utils.ut.cpp
procfs_utils.ut.cpp was being included in the main list and also added for not-MINIMAL builds. It should only be added.
Configuration menu - View commit details
-
Copy full SHA for 161f3ea - Browse repository at this point
Copy the full SHA 161f3eaView commit details -
Turn off gvisor support when building libs
Not needed in draios builds for the moment.
Configuration menu - View commit details
-
Copy full SHA for 7840ec1 - Browse repository at this point
Copy the full SHA 7840ec1View commit details -
Incorporate ARM support changes from upstream falcosecurity/libs repo (…
Configuration menu - View commit details
-
Copy full SHA for ea025ac - Browse repository at this point
Copy the full SHA ea025acView commit details -
refactor(libsinsp/container): introduce sinsp_container_lookup class
Have sinsp_container_lookup with what was sinsp_container_lookup_state inside. Also introduce convenience methods. Signed-off-by: Angelo Puglisi <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4fad654 - Browse repository at this point
Copy the full SHA 4fad654View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4fceb41 - Browse repository at this point
Copy the full SHA 4fceb41View commit details -
Retain m_sysdig_agent_conf, was removed upstream
This is still used in analyzer_thread.cpp so keep it in our fork.
Configuration menu - View commit details
-
Copy full SHA for 5130dbb - Browse repository at this point
Copy the full SHA 5130dbbView commit details -
* fix(container_engine): Only return on success or all retries failed Instead of always returning a result on the first attempt, only return results on success or when all retries have failed. This prevents spurious "container" events for incomplete results. This is especially important when both docker and cri are enabled, when both must be tried due to the cgroup pattern overlapping, but only one actually holds the container. Signed-off-by: Mark Stemm <[email protected]> * Log a warning when empty container infos are returned When empty container infos are passed up due to all attempts failing, log a warining. This will help highlight cases when the communication with the container runtime isn't working properly. Signed-off-by: Mark Stemm <[email protected]> * Add debug log to note when a lookup is async or sync The "async_xxx" refers to the code that performs the lookup (we used to have a separate "docker" engine, but it's been removed. To make it more clear about whether a lookup is synchronous or asynchronous, add a debug log. Signed-off-by: Mark Stemm <[email protected]> * Use bundled valijson for "regular" build valijson doesn't really have an ubuntu package, so it can't be preinstalled. Use the bundled valijson instead. * Add RE2 to container used for builds + tests This way it will be present when building with -DUSE_BUNDLED_DEPS=False Signed-off-by: Mark Stemm <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3666a12 - Browse repository at this point
Copy the full SHA 3666a12View commit details -
Revert "Merge upstream pr 688 (#121)" (#122)
This reverts commit 35d80de. It was probably causing some container runtime tests to fail.
Configuration menu - View commit details
-
Copy full SHA for cc5d3dd - Browse repository at this point
Copy the full SHA cc5d3ddView commit details -
[SMAGENT-4237] Remove dead LIBSINSP_CPUARCH_THREAD_EVENT_BUG code (#126)
Userspace workaround for Linux kernel behaviors on ARM and zLinux, was not fully effective, and has since been obviated by kernel driver/eBPF probe logic to generate missing scap events by other means. So this changeset removes the userspace workaround.
Configuration menu - View commit details
-
Copy full SHA for ed544ca - Browse repository at this point
Copy the full SHA ed544caView commit details -
Add container engine fix back (#128)
* Revert "Revert "Merge upstream pr 688 (#121)" (#122)" This reverts commit c8dbbf3. This adds the fix back. I'll test with an agent PR that updates/removes the tests. * Add the ability to "defer" an async lookup In some cases, the "server" code running run_impl might want to retry its work until later. The current version can't do that--once a key is dequeued using deque_next_key, it has to call store_value or lose the request. To make retries easier, add a method defer_lookup that pushes the key (and optional value) back onto the request queue with a configurable delay. After delay, the key will be pulled again with a call to dequeue_next_key(). Signed-off-by: Mark Stemm <[email protected]> * Use defer_lookup for container info retry instead of lookup_delayed When the container async lookup class wants to retry a lookup, the current version tries to use lookup_delayed to initiate a new request. It turns out that that doesn't work--if there's already an existing request in m_value_map, it assumes that the "server" doing run_impl will eventually return an answer, and doesn't add a request to the queue. The solution is to use the newly added lookup_delayed instead, which pushes the request back onto the queue with a short delay. Signed-off-by: Mark Stemm <[email protected]> * Use a separate max_wait_ms instead of re-using s_cri_timeout Now that timeouts are working, it may take several seconds for subsequent retries to complete. However, s_cri_timeout (typically 1 second) was being used for the max_wait_ms in cri_async_source. That would mean that a lookup would expire before the server side had retried the lookup. The solution is to use a separate 10 second max_wait_ms, which matches docker. Signed-off-by: Mark Stemm <[email protected]> Signed-off-by: Mark Stemm <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b083509 - Browse repository at this point
Copy the full SHA b083509View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3035c20 - Browse repository at this point
Copy the full SHA 3035c20View commit details -
fix(scap): don't assume __always_inline is defined
It isn't on Windows. Signed-off-by: Grzegorz Nosek <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4b49817 - Browse repository at this point
Copy the full SHA 4b49817View commit details -
[SMAGENT-4309] Remove obsolete function reinit_thread_from_proc() (#134)
The function sinsp_thread_manager::reinit_thread_from_proc() was added to draios/agent-libs as part of a now-obsolete workaround for an ARM/zLinux platform bug. That workaround has been removed, so now we need to remove this no-longer-used function from sinsp_thread_manager.
Configuration menu - View commit details
-
Copy full SHA for ebe9b77 - Browse repository at this point
Copy the full SHA ebe9b77View commit details -
Add const_expr_visitor, use it when compiling/cloning/stringing (#146)
In some cases, we want to ensure that a visitor does *not* change the ast. This includes cases where the ast pointer used by the visitor is read-only. To support these use cases, add a const_expr_visitor interface where all the visit() methods take a const argument. Also add variants of accept() that take const_expr_visitor arguments and call the const_expr_visitors visit() method. Compiling, cloning, and stringifying asts are all cases that should not change the underlying ast, so switch those to use const_expr_visitor instead of expr_visitor. A couple of compile private methods had to be changed to take const arguments. They already didn't modify those arguments, so it was a safe change. Signed-off-by: Mark Stemm <[email protected]> Signed-off-by: Mark Stemm <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for af7f4ff - Browse repository at this point
Copy the full SHA af7f4ffView commit details -
We need them when building with hayabusa
Configuration menu - View commit details
-
Copy full SHA for 54cde1e - Browse repository at this point
Copy the full SHA 54cde1eView commit details -
new(sinsp): Add euid to execve/execveat exit events
We can't prevent losing setuid events completely and the uid is pretty important for some execve-related rules, so explicitly pass the uid in execve/at exit events Signed-off-by: Grzegorz Nosek <[email protected]> Co-authored-by: Angelo Puglisi <[email protected]> Co-authored-by: Andrea Terzolo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8c9de3f - Browse repository at this point
Copy the full SHA 8c9de3fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f985c58 - Browse repository at this point
Copy the full SHA f985c58View commit details -
fix(driver): fixed
PPM_SC_PIDFD_GET_FD
andPPM_SC_PIDFD_GETFD
.`PPM_SC_PIDFD_GETFD` was introduced by syscalls-bumper in libs 0.10.x; `PPM_SC_PIDFD_GET_FD` was instead an uncorrect name being used by libs. Dropped the latter and renamed to correct name the former. Signed-off-by: Federico Di Pierro <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5565bba - Browse repository at this point
Copy the full SHA 5565bbaView commit details -
cleanup(driver,libscap): revert back breaking change in #948.
Add a way to skip PPM_SC_NA_X codes while populating syscall_info_table. Signed-off-by: Federico Di Pierro <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fde58bc - Browse repository at this point
Copy the full SHA fde58bcView commit details -
[falcosecurity#803] update(userspace/libsinsp): rely on proc root for…
… user and group container lookup (#142) Partial port of falcosecurity#803 (e2e test update skipped)
Configuration menu - View commit details
-
Copy full SHA for a12cd5b - Browse repository at this point
Copy the full SHA a12cd5bView commit details -
[SMAGENT-4559] Check struct passwd members for null pointers (#152)
When node is using NIS / nss_compat for user management, /etc/passwd entries can refer to NIS groups or users, which causes parser to return null pointers instead of c-strings. This change adds checks against those. --------- Signed-off-by: Wiktor Gołgowski <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1e4cb08 - Browse repository at this point
Copy the full SHA 1e4cb08View commit details
Commits on Mar 19, 2023
-
[smagent-4642] Changes to prepare for TBB upgrade (#161)
**What type of PR is this?** /kind feature **Any specific area of the project related to this PR?** /area libsinsp **Does this PR require a change in the driver versions?** **What this PR does / why we need it**: Change usage of the library TBB so that it can cope with a newer version of it. More specifically it removes the usage of `tbb::tbb_hash` (nno longer available in newer versions of TBB) in favour of a hash function composed from `std::hash`. **Which issue(s) this PR fixes**: **Special notes for your reviewer**: The change affects code that is only present in `draios/agent-libs` and **not** in `falcosecurity/libs`. **Does this PR introduce a user-facing change?**: ```release-note NONE ```
Configuration menu - View commit details
-
Copy full SHA for 8c893eb - Browse repository at this point
Copy the full SHA 8c893ebView commit details
Commits on Mar 24, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ebb1753 - Browse repository at this point
Copy the full SHA ebb1753View commit details
Commits on Mar 28, 2023
-
Ssprod 23324 add filtercheck testability improvements (#165)
* Add method to retrieve argid from thread filterchecks Thread filterchecks can have a numeric arg for some fields like proc.aname/proc.apid. This allows returning an argid for a filtercheck object. It's -1 if the field doesn't support or doesn't have an arg. This can be used in unit tests to print/compare filtercheck objects. Signed-off-by: Mark Stemm <[email protected]> * Also save (pointers) to filtercheck values in order Currently, a filtercheck saves the raw values in m_val_storages and a pointer + parsed len in m_val_storages_members. Because m_val_storages_members is an unordered_set, the original order is lost. This makes it difficult to print out a filter expression and compare it to the original input string, as the order of checks like "field in (val1, val2, val3, ...)" are lost. To help retain this order, add a vector m_vals that saves the pointer + length, but in a vector instead of in an ordered_set. Signed-off-by: Mark Stemm <[email protected]> * Add a const base_expr_visitor Following on the changes in falcosecurity/libs#837, add a const variant of base_expr_visitor. This allows definining subclasses that want to traverse an ast read-only without implementng all the methods. Signed-off-by: Mark Stemm <[email protected]> --------- Signed-off-by: Mark Stemm <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d6af955 - Browse repository at this point
Copy the full SHA d6af955View commit details
Commits on Mar 31, 2023
-
fix(libsinsp,libscap): remove legacy references to is_windows
Signed-off-by: Luca Guerra <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c5a503b - Browse repository at this point
Copy the full SHA c5a503bView commit details -
fix(scap): properly detect threads in child pidns
tid != vtid is not necessary (though sufficient) to check if a thread is in a child pid namespace. This leads to pidns_start_ts being wrong occasionally (when a thread happens to have tid == vtid by chance, even if it's in a child pidns). Signed-off-by: Grzegorz Nosek <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 46a8bb3 - Browse repository at this point
Copy the full SHA 46a8bb3View commit details -
fix(scap): simplify pidns_start_ts logic in /proc scan
We can significantly simplify the logic of checking the pidns start time (during the initial /proc scan), based on the following observations: * the task's start time is (apparently) accessible as simply the timestamp (any timestamp) on its /proc/ * for every task, its root filesystem is accessible via /proc/<pid>/root * the first task in every pidns has pid==1 (as seen from the pidns) Putting these together, it seems it's enough to stat("/proc/<pid>/root/proc/1") and pick whichever you want out of [acm]time. Ref: falcosecurity/libs#860 (comment) Signed-off-by: Grzegorz Nosek <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b2657fa - Browse repository at this point
Copy the full SHA b2657faView commit details -
Resolve falcosecurity/libs#932, use /proc/1/cmdline for boot/procfs c…
…reation time See falcosecurity/libs#932 for more context Change occurrences of `/proc/1` to `/proc/1/cmdline` in * userspace/libscap/linux/scap_procs.c * userspace/libscap/scap.c Previous: ```c snprintf(proc_dir, sizeof(proc_dir), "%s/proc/1/", scap_get_host_root()); ``` This PR: ```c snprintf(proc_cmdline, sizeof(proc_cmdline), "%s/proc/1/cmdline", scap_get_host_root()); ``` Co-authored-by: Grzegorz Nosek <[email protected]> Co-authored-by: Melissa Kilby <[email protected]> Signed-off-by: Stanley Chan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6f55850 - Browse repository at this point
Copy the full SHA 6f55850View commit details -
Resolve falcosecurity#932, use btime from /proc/stat for boot time
Get boot time from btime value in /proc/stat ref: falcosecurity/libs#932 /proc/uptime and btime in /proc/stat are fed by the same kernel sources. Multiple ways to get boot time: * btime in /proc/stat * calculation via clock_gettime(CLOCK_REALTIME - CLOCK_BOOTTIME) * calculation via time(NULL) - sysinfo().uptime Maintainers preferred btime in /proc/stat because: * value does not depend on calculation using current timestamp * btime is "static" and doesn't change once set * btime is available in kernels from 2008 * CLOCK_BOOTTIME is available in kernels from 2011 (2.6.38) By scraping btime from /proc/stat, it is both the heaviest and most likely to succeed Co-authored-by: Grzegorz Nosek <[email protected]> Co-authored-by: Melissa Kilby <[email protected]> Signed-off-by: Stanley Chan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dba2e32 - Browse repository at this point
Copy the full SHA dba2e32View commit details -
Use SECOND_TO_NS in rest of userspace/libscap/linux/scap_procs.c
Co-authored-by: Grzegorz Nosek <[email protected]> Co-authored-by: Melissa Kilby <[email protected]> Signed-off-by: Stanley Chan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 898e7d7 - Browse repository at this point
Copy the full SHA 898e7d7View commit details -
chore(scap_kmod): reduce variable scope
Co-authored-by: Angelo Puglisi <[email protected]> Signed-off-by: Angelo Puglisi <[email protected]> Signed-off-by: Grzegorz Nosek <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7f47071 - Browse repository at this point
Copy the full SHA 7f47071View commit details -
Configuration menu - View commit details
-
Copy full SHA for a41deb4 - Browse repository at this point
Copy the full SHA a41deb4View commit details -
cleanup(scap): decouple limited /proc scan from nodriver engine
The nodriver engine is still the only user of limited /proc scan but we no longer check handle->m_mode. Instead we have a dedicated flag. This lets us have the nodriver engine with a full /proc scan if we want. Signed-off-by: Grzegorz Nosek <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ef8b089 - Browse repository at this point
Copy the full SHA ef8b089View commit details -
new(scap): enable full /proc scan for nodriver engine
The patch is somewhat weird because it introduces an option for the nodriver engine which is used only by the main libscap code (the /proc scan does not live in the engine). Still, we're (logically) configuring the nodriver engine, I believe the flag belongs in the engine config. Signed-off-by: Grzegorz Nosek <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dc3d6bd - Browse repository at this point
Copy the full SHA dc3d6bdView commit details -
new(scap): support no_events mode for gVisor
This new flag means that we're *not* going to get any events from the engine and are using it just for the secondary effects of scap_open (mostly getting the process table). This is needed to safely open a new inspector while another one exists. Otherwise we'd overwrite the gVisor socket with a new one (which would become inactive the moment we close the second inspector), breaking all future gVisor connections. Co-Authored-By: Angelo Puglisi <[email protected]> Signed-off-by: Grzegorz Nosek <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 13bcf92 - Browse repository at this point
Copy the full SHA 13bcf92View commit details
Commits on Apr 7, 2023
-
fix(scap): Use precise boot time for BPF engines
In dba2e32 we switched the way we determine the boot time from CLOCK_BOOTTIME based to /proc/stat based. The new way is more compatible (including compatibility with ancient kernels) but it only has a full second accuracy (the fractional part is lost). Unfortunately, we need the extra precision in BPF engines since we only get timestamps since boot from the kernel. Without the subsecond part, all events get their timestamps shifted by up to a second to the past (the exact value depends on the fractional part of the second the machine booted). Since BPF engines do not need compatibility with prehistoric kernels (they don't support eBPF anyway), switch them to use CLOCK_BOOTTIME to get the boot time. Signed-off-by: Grzegorz Nosek <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e213ca6 - Browse repository at this point
Copy the full SHA e213ca6View commit details
Commits on Apr 17, 2023
-
Add addl(test-only) way to initialize events, setting errorcode
Some tests rely on creating fake events without all of the overhead of an inspector, etc. To support new tests that rely on m_errorcode (generally maps to the res field of events), add a new initializer that passes in a scap + ppm header and errorcode, and just directly sets m_errorcode. Signed-off-by: Mark Stemm <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 609e1d0 - Browse repository at this point
Copy the full SHA 609e1d0View commit details