Skip to content

Commit

Permalink
Allow building as non-root by passing NO_ROOT=1 to make
Browse files Browse the repository at this point in the history
  • Loading branch information
arichardson committed Mar 3, 2021
1 parent bd15493 commit c116572
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ mini-me: mini-me.c
mini-me.noexec: mini-me
cp mini-me $@ && chmod -x $@
mini-me.setuid: mini-me
rm -f $@ && cp mini-me $@&& sudo chown root $@ && sudo chmod u+s $@
ifneq ($(NO_ROOT),)
rm -f $@ && cp mini-me $@
else
rm -f $@ && cp mini-me $@ && sudo chown root $@ && sudo chmod u+s $@
endif

# Simple C test of Capsicum syscalls
SMOKETEST_OBJECTS=smoketest.o
Expand Down

0 comments on commit c116572

Please sign in to comment.