Skip to content

Commit

Permalink
do_sandbox only when gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
prekucki committed Sep 3, 2024
1 parent 01f5e2f commit 783299f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ya-runtime-vm"
version = "0.4.1"
version = "0.4.2"
authors = ["Golem Factory <[email protected]>"]
edition = "2021"
license = "GPL-3.0"
Expand Down
2 changes: 1 addition & 1 deletion runtime/conf/ya-runtime-vm.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"name": "vm",
"version": "0.4.1",
"version": "0.4.2",
"supervisor-path": "exe-unit",
"runtime-path": "ya-runtime-vm/ya-runtime-vm",
"description": "vm runtime",
Expand Down
4 changes: 2 additions & 2 deletions runtime/init-container/src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ static noreturn void child_wrapper(int parent_pipe[2],
case CAP_LEASE:
case CAP_LINUX_IMMUTABLE:
// case CAP_MKNOD:
// cas CAP_NET_ADMIN:
// case CAP_NET_ADMIN:
case CAP_NET_BIND_SERVICE:
case CAP_NET_BROADCAST:
case CAP_NET_RAW:
Expand Down Expand Up @@ -2241,7 +2241,7 @@ int main(int argc, char **argv) {
MS_NODEV | MS_NOSUID | MS_NOEXEC,
NULL));

bool do_sandbox = true;
bool do_sandbox = nvidia_loaded;
for (int i = 1; i < argc; ++i) {
fprintf(stderr, "Command line argument: %s\n", argv[i]);
if (strcmp(argv[i], "sandbox=yes") == 0) {
Expand Down

0 comments on commit 783299f

Please sign in to comment.