capablevms / cheri_misidioms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CHERI misidioms

This draft paper describes some bad CHERI idioms we have encountered. The code/ directory gives executable examples of many of these bad idioms.

To run code examples on a CHERI emulator execute the following commands:

$ cd code
$ SSHPORT=<cheribsd port> make -f Makefile.<platform>-purecap copyexec-<benchmark>

For example, if you have a CHERI-BSD Morello emulator running on 127.0.0.1 on port 12345 and want to to run the privesc.c code example:

$ SSHPORT=12345 make -f Makefile.morello-purecap copyexec-privesc

If you want to run all of the code examples in one go, use the all-copyexec target:

$ SSHPORT=12345 make -f Makefile.morello-purecap all-copyexec

About


Languages

Language:C 61.8%Language:TeX 23.6%Language:Python 6.8%Language:Rust 3.3%Language:Perl 2.4%Language:CMake 1.1%Language:Shell 0.6%Language:Makefile 0.2%Language:R 0.2%Language:Dockerfile 0.1%