You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 024e0a4
Browse filesBrowse the repository at this point in the historyBrowse files
feat(supervisor): record the command line of each process
Process Activity named each process by its executable only, so a record
of /usr/bin/bash or /usr/bin/python3 did not say what it was asked to
run.
When the ocsf_process_cmdline_enabled setting is on, the runtime records
each process's arguments with its launch: the argv it started the
entrypoint or a session with, and the argv each exec in the workload
passes, read from the caller's memory. It keeps up to 256 arguments and
4 KiB per process and marks a shortened list. The supervisor applies the
setting through ReadProcessEvents alongside ocsf_process_exec_enabled,
reports command lines only while the setting asks for them, and sets
process.cmd_line on Launch records with the arguments quoted as a shell
would read them, control characters ANSI-C quoted, and a trailing …
when shortened. The shorthand log also escapes control characters and
`]` in the command line so a workload cannot forge log lines.
Arguments can hold secrets, so the setting is off by default and
separate from exec recording. An exec's arguments are read before the
kernel runs it, so another thread can change them first.
Refs #4268
Signed-off-by: Kris Hicks <khicks@nvidia.com>
0 commit comments