sfl-examples/lecture-demos/setuid/Makefile

11 lines
228 B
Makefile
Raw Normal View History

2023-12-14 13:56:57 +01:00
all: setuid-toctou
clean:
sudo rm -f setuid-toctou
# file must be owned by root, hence we `chown`
setuid-toctou:
gcc setuid-toctou.c -o setuid-toctou &&\
chmod u+s ./setuid-toctou &&\
sudo chown root:root ./setuid-toctou