https://github.com/baconator/autopledge-insert
Automatically inserts pledge(2) calls into C/C++ code.
https://github.com/baconator/autopledge-insert
Last synced: 5 months ago
JSON representation
Automatically inserts pledge(2) calls into C/C++ code.
- Host: GitHub
- URL: https://github.com/baconator/autopledge-insert
- Owner: baconator
- Created: 2016-03-17T23:04:00.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-29T15:15:27.000Z (about 9 years ago)
- Last Synced: 2024-02-14T03:28:34.536Z (about 1 year ago)
- Language: C++
- Homepage:
- Size: 93.8 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-pledge - autopledge-insert - *Automatically inserts pledge(2) calls into C/C++ code* (Libraries)
README
# Grand Plan
* Use [BEAR](https://github.com/rizsotto/Bear) to generate a compilation database.
* Run an analysis over that in order to determine what capabilities are used in which symbols.
* Annotate all implicated files with the computed pledge statements.# Usage (eventually)
* ¯\\\_(ツ)\_/¯ Just discovered bear, so lets just see what arises organically.# Requirements (MSYS2)
* (all prefixed w/mingw-w64-x86_64-) clang, clang-tools-extra, cmake, extra-cmake-modules, gdb, make, lld# Building
* `mkdir build`
* `cd build`
* `cmake -G "MSYS Makefiles" ../src`
* `make`# Links
* [Paper](https://www.authorea.com/users/87525/articles/105798/_show_article?access_token=C2nWklTKKQM3vNmRBNneHw) ([github repo](https://github.com/baconator/autopledge-paper))
* [Measurement tool](https://github.com/Steven-Evans/autopledge-measure)
* [OpenBSD checkout](https://github.com/Steven-Evans/OpenBSD)