eBPF-based security platform
docs: describe the decoder trailer and the package README as built
Daniel Borkmann9e3bff71b7cc
diff --git a/Documentation/upatch-spec.rst b/Documentation/upatch-spec.rstindex e04aa089..b2f76de4 100644--- a/Documentation/upatch-spec.rst+++ b/Documentation/upatch-spec.rst@@ -181,13 +181,13 @@ The final 16 bytes of ``data`` are:offset size field meaning========== ==== ===================== ====================================+0 4 magic ``0x52544344`` (``"DCTR"`` LE)-+4 4 version ``2`` (``1`` remains readable)++4 4 version ``1``+8 4 decoder_off offset from the start of ``data``+12 4 decoder_len decoder blob length========== ==== ===================== ====================================The blob starts with magic ``0x42444344`` (``"DCDB"`` LE), a version, a-decoder count and a reserved word. Each 196-byte entry holds the+decoder count and a reserved word. Each 200-byte entry holds thelanguage, API version, input format, fixed-size upatch, map, sourceand entrypoint strings, and the source offset and length within theblob. Version 1 defines language ``1`` as Lua and input format ``1``diff --git a/Documentation/upatch.rst b/Documentation/upatch.rstindex 304fd551..cd8952b7 100644--- a/Documentation/upatch.rst+++ b/Documentation/upatch.rst@@ -284,7 +284,9 @@ A package is a directory with a ``Beefile`` next to the sources::``[package]````name`` (also the package file's base name), ``description``,- ``license`` and ``authors``; they go into the package's README.+ ``license`` and ``authors``, which document the Beefile and are+ not copied into the package; its README is the ``README.md``+ beside the Beefile, when there is one.``[[files]]``Files copied into the package as they are: headers, decoders,@@ -318,11 +320,11 @@ decoders and shared headers. Build and inspect::``bpm build [context] --version <v> [-f <Beefile>] [--keys-dir <dir>]``builds and signs every entry through ``shirudo-build`` and writes``<name>-<version>.bee``: a gzip tarball with the ``Beefile``, the-``upatches/*.upatch`` and ``*.unload.upatch`` artifacts, a-``README.md``, the signing ``cert.der`` and a ``build-environment.json``-recording the toolchain. Versions are what the registry index orders-by and are immutable once published, so a rebuilt package gets a new-version.+``upatches/*.upatch`` and ``*.unload.upatch`` artifacts, the+``README.md`` when there is one, the signing ``cert.der`` and a+``build-environment.json`` recording the toolchain. Versions are what+the registry index orders by and are immutable once published, so a+rebuilt package gets a new version.6) Publishing