add urandom and all /etc to nsjail

This commit is contained in:
Ruben Fiszel
2022-11-25 19:05:41 +01:00
parent d7757dbe74
commit 65a535eb86
5 changed files with 34 additions and 119 deletions
@@ -46,28 +46,8 @@ mount {
}
mount {
src: "/etc/ssl"
dst: "/etc/ssl"
is_bind: true
}
mount {
src: "/etc/pki"
dst: "/etc/pki"
is_bind: true
mandatory: false
}
mount {
src: "/etc/ca-certificates"
dst: "/etc/ca-certificates"
is_bind: true
mandatory: false
}
mount {
src: "/etc/resolv.conf"
dst: "/etc/resolv.conf"
src: "/etc"
dst: "/etc"
is_bind: true
}
@@ -66,36 +66,8 @@ mount {
}
mount {
src: "/etc/ssl"
dst: "/etc/ssl"
is_bind: true
}
mount {
src: "/etc/ld.so.cache"
dst: "/etc/ld.so.cache"
is_bind: true
mandatory: false
}
mount {
src: "/etc/pki"
dst: "/etc/pki"
is_bind: true
mandatory: false
}
mount {
src: "/etc/ca-certificates"
dst: "/etc/ca-certificates"
is_bind: true
mandatory: false
}
mount {
src: "/etc/resolv.conf"
dst: "/etc/resolv.conf"
src: "/etc"
dst: "/etc"
is_bind: true
}
@@ -105,6 +77,12 @@ mount {
is_bind: true
}
mount {
src: "/dev/urandom"
dst: "/dev/urandom"
is_bind: true
}
iface_no_lo: true
{SHARED_MOUNT}
@@ -93,28 +93,8 @@ mount {
}
mount {
src: "/etc/ssl"
dst: "/etc/ssl"
is_bind: true
}
mount {
src: "/etc/pki"
dst: "/etc/pki"
is_bind: true
mandatory: false
}
mount {
src: "/etc/ca-certificates"
dst: "/etc/ca-certificates"
is_bind: true
mandatory: false
}
mount {
src: "/etc/resolv.conf"
dst: "/etc/resolv.conf"
src: "/etc"
dst: "/etc"
is_bind: true
}
@@ -124,6 +104,12 @@ mount {
is_bind: true
}
mount {
src: "/dev/urandom"
dst: "/dev/urandom"
is_bind: true
}
mount {
src: "{CACHE_DIR}"
dst: "/tmp/.cache/deno"
@@ -79,30 +79,9 @@ mount {
is_bind: true
}
mount {
src: "/etc/ssl"
dst: "/etc/ssl"
is_bind: true
}
mount {
src: "/etc/pki"
dst: "/etc/pki"
is_bind: true
mandatory: false
}
mount {
src: "/etc/ca-certificates"
dst: "/etc/ca-certificates"
is_bind: true
mandatory: false
}
mount {
src: "/etc/resolv.conf"
dst: "/etc/resolv.conf"
src: "/etc"
dst: "/etc"
is_bind: true
}
@@ -112,6 +91,12 @@ mount {
is_bind: true
}
mount {
src: "/dev/urandom"
dst: "/dev/urandom"
is_bind: true
}
iface_no_lo: true
mount {
@@ -92,28 +92,8 @@ mount {
}
mount {
src: "/etc/ssl"
dst: "/etc/ssl"
is_bind: true
}
mount {
src: "/etc/pki"
dst: "/etc/pki"
is_bind: true
mandatory: false
}
mount {
src: "/etc/ca-certificates"
dst: "/etc/ca-certificates"
is_bind: true
mandatory: false
}
mount {
src: "/etc/resolv.conf"
dst: "/etc/resolv.conf"
src: "/etc"
dst: "/etc"
is_bind: true
}
@@ -123,6 +103,12 @@ mount {
is_bind: true
}
mount {
src: "/dev/urandom"
dst: "/dev/urandom"
is_bind: true
}
{SHARED_MOUNT}
{SHARED_DEPENDENCIES}