diff options
author | Rezrov Frotz <rezrov.frotz@gmail.com> | 2014-06-18 14:01:35 -0400 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2014-06-23 21:58:01 +0200 |
commit | 01440bc95a204321f9a0878945efa1d35f41b266 (patch) | |
tree | 5ad5b882bcf780a9aaa7265c9f5f7247c6287d7c /Makefile | |
parent | ba41efa59f5f7143c5431d001ed80d76108de988 (diff) | |
download | miniircd-01440bc95a204321f9a0878945efa1d35f41b266.tar.gz miniircd-01440bc95a204321f9a0878945efa1d35f41b266.zip |
Added warning if running as root, added make jail, updated README.
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) |