From 01440bc95a204321f9a0878945efa1d35f41b266 Mon Sep 17 00:00:00 2001 From: Rezrov Frotz Date: Wed, 18 Jun 2014 14:01:35 -0400 Subject: Added warning if running as root, added make jail, updated README. --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile') 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) -- cgit v1.2.3