summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a8b923b..41a5590 100644
--- a/Makefile
+++ b/Makefile
@@ -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)