diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,6 +1,8 @@ VERSION := $(shell sed -ne 's/^VERSION = "\(.*\)"/\1/p' miniircd) DISTFILES = miniircd COPYING README.md +JAILDIR = /var/jail/miniircd +JAILUSER = nobody all: echo "Nothing to do." @@ -13,3 +15,11 @@ dist: clean: rm -rf miniircd-$(VERSION) *~ + +jail: + mkdir -p $(JAILDIR)/dev + chmod 755 $(JAILDIR) + mknod $(JAILDIR)/dev/null c 1 3 + mknod $(JAILDIR)/dev/urandom c 1 9 + chmod 666 $(JAILDIR)/dev/* + chown $(JAILUSER) $(JAILDIR) |