Skip to content

Commit 0266490

Browse files
Firmware exercise: clarify demangle note
1 parent 62fa673 commit 0266490

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

exercises/firmware_auditing/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,8 @@ It is not always trivial to manually demangle these symbols.
128128
Luckily for us, the libstdc++ cross-vendor C++ ABI defines a function `abi::__cxa_demangle` to help demangle these names, and `cheriot-audit` wraps and exposes this through the built-in `export_entry_demangle` function.
129129
This function takes the compartment name and export symbol as its two arguments.
130130

131-
> ℹ️ The next rule `patched_export_entry_demangle` is not relevant to this example.
131+
> ℹ️ You don't need to know how the next rule `patched_export_entry_demangle` works for this example.
132132
> It simply manually adds support for an additional library export name mangling prefix that is not currently checked for.
133-
> However, it is a useful example of string operations in Rego, as well as another case of rules with multiple definitions.
134133
> We have one rule for export symbols that start with `__library_export_`, converting this to an `__export_` prefix, and otherwise we simply pass the symbol to `export_entry_demangle`.
135134
136135
Now that we have a method to filter for exported symbols with disabled interrupts, and the means to demangle names, we can create a rule to check that a compartment only has the specified disabled interrupts.

0 commit comments

Comments
 (0)