Skip to content

Commit

Permalink
docs: Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
John Doe committed Nov 4, 2023
1 parent 72523bc commit 05b6aa8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ $ hakoniwa run --verbose -- /bin/bash
[2022-08-21T09:14:11Z INFO hakoniwa::executor] Mount point: host_path: "/usr/lib", container_path: "/lib64", fstype: "", rw: false
[2022-08-21T09:14:11Z INFO hakoniwa::executor] Mount point: host_path: "/usr", container_path: "/usr", fstype: "", rw: false
[2022-08-21T09:14:11Z INFO hakoniwa::executor] Mount point: host_path: "/dev/null", container_path: "/dev/null", fstype: "", rw: true
[2022-08-21T09:14:11Z INFO hakoniwa::executor] Mount point: host_path: "/dev/random", container_path: "/dev/random", fstype: "", rw: false
[2022-08-21T09:14:11Z INFO hakoniwa::executor] Mount point: host_path: "/dev/urandom", container_path: "/dev/urandom", fstype: "", rw: false
[2022-08-21T09:14:11Z INFO hakoniwa::executor] Mount point: host_path: "/dev/zero", container_path: "/dev/zero", fstype: "", rw: false
[2022-08-21T09:14:11Z INFO hakoniwa::executor] Mount point: host_path: "/dev/random", container_path: "/dev/random", fstype: "", rw: true
[2022-08-21T09:14:11Z INFO hakoniwa::executor] Mount point: host_path: "/dev/urandom", container_path: "/dev/urandom", fstype: "", rw: true
[2022-08-21T09:14:11Z INFO hakoniwa::executor] Mount point: host_path: "/dev/zero", container_path: "/dev/zero", fstype: "", rw: true
[2022-08-21T09:14:11Z INFO hakoniwa::executor] UID map: host_id: 5001, container_id: 5001
[2022-08-21T09:14:11Z INFO hakoniwa::executor] GID map: host_id: 1000, container_id: 1000
[2022-08-21T09:14:11Z INFO hakoniwa::executor] Seccomp: disabled
Expand Down Expand Up @@ -81,9 +81,9 @@ mounts = [
{ source = "/lib64" , target = "/lib64" },
{ source = "/usr" , target = "/usr" },
{ source = "/dev/null" , target = "/dev/null" , rw = true },
{ source = "/dev/random" , target = "/dev/random" },
{ source = "/dev/urandom", target = "/dev/urandom" },
{ source = "/dev/zero" , target = "/dev/zero" },
{ source = "/dev/random" , target = "/dev/random" , rw = true },
{ source = "/dev/urandom", target = "/dev/urandom" , rw = true },
{ source = "/dev/zero" , target = "/dev/zero" , rw = true },
]
[env]
Expand Down
2 changes: 1 addition & 1 deletion hakoniwa-cli/examples/apps-firefox/policy.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mounts = [
{ source = "/lib64" , target = "/lib64" },
{ source = "/usr" , target = "/usr" },
{ source = "/dev/null" , target = "/dev/null" , rw = true },
{ source = "/dev/random", target = "/dev/random" },
{ source = "/dev/random", target = "/dev/random" , rw = true },
{ source = "/dev/snd" , target = "/dev/snd" },
{ source = "/etc/fonts" , target = "/etc/fonts" },
{ source = "/etc/machine-id" , target = "/etc/machine-id" },
Expand Down
1 change: 0 additions & 1 deletion hakoniwa-cli/examples/howto-seccomp-syscalls.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ To summarize:

```sh
$ sudo ausearch -ts 17:15:56 -m seccomp -i | awk -F " : " '{ print $2 }' | awk -F "[ =]" '{ print $20 }' | sort | uniq

access
arch_prctl
brk
Expand Down
6 changes: 3 additions & 3 deletions hakoniwa-cli/examples/usage-verbose.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ $ hakoniwa run --verbose -- echo "Hako!"
[2022-08-21T10:17:39Z INFO hakoniwa::executor] Mount point: host_path: "/usr/lib", container_path: "/lib64", fstype: "", rw: false
[2022-08-21T10:17:39Z INFO hakoniwa::executor] Mount point: host_path: "/usr", container_path: "/usr", fstype: "", rw: false
[2022-08-21T10:17:39Z INFO hakoniwa::executor] Mount point: host_path: "/dev/null", container_path: "/dev/null", fstype: "", rw: true
[2022-08-21T10:17:39Z INFO hakoniwa::executor] Mount point: host_path: "/dev/random", container_path: "/dev/random", fstype: "", rw: false
[2022-08-21T10:17:39Z INFO hakoniwa::executor] Mount point: host_path: "/dev/urandom", container_path: "/dev/urandom", fstype: "", rw: false
[2022-08-21T10:17:39Z INFO hakoniwa::executor] Mount point: host_path: "/dev/zero", container_path: "/dev/zero", fstype: "", rw: false
[2022-08-21T10:17:39Z INFO hakoniwa::executor] Mount point: host_path: "/dev/random", container_path: "/dev/random", fstype: "", rw: true
[2022-08-21T10:17:39Z INFO hakoniwa::executor] Mount point: host_path: "/dev/urandom", container_path: "/dev/urandom", fstype: "", rw: true
[2022-08-21T10:17:39Z INFO hakoniwa::executor] Mount point: host_path: "/dev/zero", container_path: "/dev/zero", fstype: "", rw: true
[2022-08-21T10:17:39Z INFO hakoniwa::executor] UID map: host_id: 5001, container_id: 5001
[2022-08-21T10:17:39Z INFO hakoniwa::executor] GID map: host_id: 1000, container_id: 1000
[2022-08-21T10:17:39Z INFO hakoniwa::executor] Seccomp: disabled
Expand Down

0 comments on commit 05b6aa8

Please sign in to comment.