Skip to content

Commit

Permalink
merge nvidia sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
partouf committed Nov 4, 2022
1 parent b5e61a0 commit 197a146
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 195 deletions.
26 changes: 25 additions & 1 deletion etc/nsjail/sandbox.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ log_level: FATAL
rlimit_as_type: INF
rlimit_cpu_type: SOFT
rlimit_fsize: 16 # 16 MiB
rlimit_nofile: 10
rlimit_nofile: 100

uidmap {
inside_id: "0"
Expand Down Expand Up @@ -122,6 +122,30 @@ mount {
is_bind: true
}

mount {
src: "/dev/nvidia0"
dst: "/dev/nvidia0"
is_bind: true
}

mount {
src: "/dev/nvidiactl"
dst: "/dev/nvidiactl"
is_bind: true
}

mount {
src: "/dev/nvidia-modeset"
dst: "/dev/nvidia-modeset"
is_bind: true
}

mount {
src: "/dev/nvidia-uvm"
dst: "/dev/nvidia-uvm"
is_bind: true
}

mount {
dst: "/proc"
fstype: "proc"
Expand Down
194 changes: 0 additions & 194 deletions etc/nsjail/sandbox.nvidia.cfg

This file was deleted.

0 comments on commit 197a146

Please sign in to comment.