summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRezrov Frotz <rezrov.frotz@gmail.com>2014-06-18 14:01:35 -0400
committerJoel Rosdahl <joel@rosdahl.net>2014-06-23 21:58:01 +0200
commit01440bc95a204321f9a0878945efa1d35f41b266 (patch)
tree5ad5b882bcf780a9aaa7265c9f5f7247c6287d7c /Makefile
parentba41efa59f5f7143c5431d001ed80d76108de988 (diff)
downloadminiircd-01440bc95a204321f9a0878945efa1d35f41b266.tar.gz
miniircd-01440bc95a204321f9a0878945efa1d35f41b266.zip
Added warning if running as root, added make jail, updated README.
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)