readme
This commit is contained in:
parent
d05aabe20d
commit
5aae8d2c00
12
README.md
12
README.md
@ -250,16 +250,20 @@ $ exit
|
||||
|
||||
***
|
||||
### Configuration file
|
||||
[config.proto](https://github.com/google/nsjail/blob/master/config.proto) contains ProtoBuf schema for nsjail's configuration format. You can also examine an example config file in [configs/bash-with-fake-geteuid.cfg](https://github.com/google/nsjail/blob/master/configs/bash-with-fake-geteuid.cfg).
|
||||
[config.proto](https://github.com/google/nsjail/blob/master/config.proto) contains ProtoBuf schema for nsjail's configuration format.
|
||||
|
||||
***
|
||||
|
||||
You can examine an example config file in [configs/bash-with-fake-geteuid.cfg](https://github.com/google/nsjail/blob/master/configs/bash-with-fake-geteuid.cfg).
|
||||
|
||||
Usage:
|
||||
<pre>
|
||||
./nsjail --config configs/bash-with-fake-geteuid.cfg
|
||||
$ ./nsjail --config configs/bash-with-fake-geteuid.cfg
|
||||
</pre>
|
||||
|
||||
You can also override certain options with command-line options. Here, the executed binary (_/bin/bash_) is overriden with _/usr/bin/id_, yet options from _configs/bash-with-fake-geteuid.cfg_ apply
|
||||
You can also override certain options with command-line options. Here, the executed binary (_/bin/bash_) is overriden with _/usr/bin/id_, yet options from _configs/bash-with-fake-geteuid.cfg_ still apply
|
||||
<pre>
|
||||
./nsjail --config configs/bash-with-fake-geteuid.cfg -- /usr/bin/id
|
||||
$ ./nsjail --config configs/bash-with-fake-geteuid.cfg -- /usr/bin/id
|
||||
...
|
||||
[INSIDE-JAIL]: id
|
||||
uid=999999 gid=999998 euid=4294965959 groups=999998,65534
|
||||
|
Loading…
Reference in New Issue
Block a user