Example repository for our article. Contains a sample program with superuser privileges checking (using the getuid() function) and a special example of a shim library that can be used to bypass these checks.
mkdir build
cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_TESTS:BOOL=ON
cmake --build build
cd build
./example-root
cd build
LD_PRELOAD="./libtricks.so" ./example-root
cd build
ctest --output-on-failure