1
0
forked from ports/contrib

nsjail: initial import

This commit is contained in:
John Vogel 2019-09-07 07:18:18 -04:00
parent 2943ef8f1b
commit 617fbb982d
3 changed files with 55 additions and 0 deletions

21
nsjail/.footprint Normal file
View File

@ -0,0 +1,21 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/nsjail
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man1/
-rw-r--r-- root/root usr/share/man/man1/nsjail.1.gz
drwxr-xr-x root/root usr/share/nsjail/
-rw-r--r-- root/root usr/share/nsjail/Dockerfile
-rw-r--r-- root/root usr/share/nsjail/config.proto
drwxr-xr-x root/root usr/share/nsjail/configs/
-rw-r--r-- root/root usr/share/nsjail/configs/apache.cfg
-rw-r--r-- root/root usr/share/nsjail/configs/bash-with-fake-geteuid.cfg
-rw-r--r-- root/root usr/share/nsjail/configs/demo-dont-use-chrome-with-net.cfg
-rw-r--r-- root/root usr/share/nsjail/configs/firefox-with-cloned-net.cfg
-rw-r--r-- root/root usr/share/nsjail/configs/firefox-with-net.cfg
-rw-r--r-- root/root usr/share/nsjail/configs/home-documents-with-xorg-no-net.cfg
-rw-r--r-- root/root usr/share/nsjail/configs/imagemagick-convert.cfg
-rw-r--r-- root/root usr/share/nsjail/configs/static-busybox-with-execveat.cfg
-rw-r--r-- root/root usr/share/nsjail/configs/tomcat8.cfg
-rw-r--r-- root/root usr/share/nsjail/configs/xchat-with-net.cfg

6
nsjail/.signature Normal file
View File

@ -0,0 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF37B8gslkLqFA7oLYxgRmTikvRgAQkM8v4EmL55gxr87WJUiAyWkA8hXxG7vTYMw8J/EhA5RQDrJkigVrzdTRVwo=
SHA256 (Pkgfile) = 6b3355971a02e8e7a2f15a4b628f55eef008493713ce29447a53f52bb1a0aa9d
SHA256 (.footprint) = 3c18bdb06b6e8fa93bcf59210bd1d1f12e2ff0fbaba6a03dfab830383812d9b4
SHA256 (nsjail-2.9.tar.gz) = f8578a48330d3d089c9234a2b562be08043f8fe77453c322724acdf403d0afc3
SHA256 (kafel-722b93a.tar.gz) = 49d2327c794c90aca50a9933c00d453705534b16e5f42d8c8e19c3d274f5e5f8

28
nsjail/Pkgfile Normal file
View File

@ -0,0 +1,28 @@
# Description: Linux process isolation tool utilizing namespaces, resource limits, seccomp-bpf
# URL: http://nsjail.com
# Maintainer: John Vogel, jvogel4 at stny dot rr dot com
# Depends on: libnl protobuf
name=nsjail
version=2.9
kafel_version=722b93a
release=1
source=(https://github.com/google/$name/archive/$version/$name-$version.tar.gz
https://github.com/google/kafel/archive/$kafel_version/kafel-$kafel_version.tar.gz)
build() {
cd $name-$version*
# workaround to avoid using `git submodule update --init`
rm -rf kafel
mv $SRC/kafel-$kafel_version* kafel
make
install -D -m 755 nsjail $PKG/usr/bin/nsjail
install -d -m 755 $PKG/usr/share/nsjail/configs
install -D -m 644 configs/* $PKG/usr/share/nsjail/configs
install -D -m 644 config.proto $PKG/usr/share/nsjail/config.proto
install -D -m 644 Dockerfile $PKG/usr/share/nsjail/Dockerfile
install -D -m 644 nsjail.1 $PKG/usr/share/man/man1/nsjail.1
}