Debian Codegraph @

testsuite/systemtap.examples/profiling/container_check.meta

raw
1 title: Monitor capabilities and syscalls used by a process and it children
2 name: container_check.stp
3 version: 1.0
4 author: William Cohen
5 keywords: profiling container syscall
6 subsystem: any
7 status: production
8 exit: user-controlled
9 output: sorted-list
10 scope: process
11 description: The container_check.stp script monitors the use of linux capablities and optionally forbidden syscalls by a process and its children. On exit the script prints out lists showing the capabilies used by each executable, which syscall used specific capabilites for each executable, a list of forbidden syscalls used, and details on any syscalls that failed during monitoring. This script is designed to help diagnose issues caused by restricted capabilies and syscalls when running an application in a container. If the script warns about skipped probes, the number of active kretprobes may need to be increased with "-DKRETACTIVE=100" option on the command line
12 test_check: stap -p4 container_check.stp
13 test_installcheck: stap container_check.stp -c "ping -c 1 sourceware.org || true"