A small utility program that sets up a new pid namespace and starts a process within that. Needs root via suid bit but later drops root priviliges to calling user.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
198 B

PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
all: pidjail
pidjail: main.c
gcc -o $@ $^
.PHONY: clean
clean:
rm pidjail
.PHONY: install
install:
install -D -m 4755 -o root pidjail $(BINDIR)/pidjail