shirudo upatch list#
List the upatches archived on this host next to the ones loaded now, and flag drift between the two.
Runs on: target, as root with the runtime binary. On a host without shirudo state it lists nothing. Requires: nothing. Changes measured state: no.
Usage#
shirudo upatch list [--json]
Description#
list reads the archive /var/lib/shirudo/upatches/*.upatch, which
init restores at boot, and the pin directories under
/run/shirudo/bpffs/upatches/:
one row per archived artifact: its name,
LOADEDyesorno, its type (loadorunload), its payload kind (bpforjava) and the first 16 hexadecimal characters of its payload digest. A Java upatch is loaded while its installed jar is the archived one.one row per pinned upatch without an archive copy, marked
not archived, gone at reboot
An archived artifact that cannot be read is listed as unreadable.
Options#
Option |
Argument |
Default |
Description |
|---|---|---|---|
|
none |
off |
Print one JSON object: |
Exit status#
Status |
Meaning |
|---|---|
0 |
The list was printed. |
1 |
The JSON document could not be built. |
2 |
A usage error: an unknown option, |
Examples#
List the upatches of a target with one loaded upatch:
target# shirudo upatch list
Archived upatches (/var/lib/shirudo/upatches):
NAME LOADED TYPE KIND PAYLOAD
shirudo-test-basic yes load bpf 8aee7072a1a15e4d..
The same target after the unload:
target# shirudo upatch list
Archived upatches (/var/lib/shirudo/upatches):
none