Skip to content

Commit ad83c19

Browse files
committed
Add Hierarchial Jail Support, and DevFS Ruleset
1 parent b20b0cc commit ad83c19

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,14 @@ To run Sylve inside a jail environment, allow the permissions below and adjust
143143
the settings as shown:
144144

145145
```ucl
146+
devfs_ruleset=5;
146147
allow.vmm;
147148
allow.nfsd;
148149
allow.mount;
149150
allow.mount.zfs;
150151
zfs.dataset="tank/sylve";
151152
enforce_statfs=1;
153+
children.max="100";
152154
vnet;
153155
154156
# For Samba
@@ -161,9 +163,30 @@ exec.prestop += "zfs unjail ${name} tank/sylve";
161163
exec.prestop += "zfs jailed=off tank/sylve";
162164
```
163165

164-
Note:
166+
Notes:
165167

166168
* Replace `tank/sylve` with your desired ZFS dataset.
169+
* Replace `100` in `children.max` with your desired number of maximum hierarchial jails.
170+
* Replace your `devfs_ruleset` number based on your own custom rules.
171+
* Add your own desired interface to `vnet.interface`.
172+
173+
### devfs ruleset
174+
175+
Here is the example for your `devfs.rules` file:
176+
177+
```devfs
178+
[devfsrules_jail_sylve=6]
179+
add include $devfsrules_hide_all
180+
add include $devfsrules_unhide_basic
181+
add include $devfsrules_unhide_login
182+
add include $devfsrules_jail
183+
add include $devfsrules_jail_vnet
184+
add path 'bpf*' unhide
185+
add path 'vmmctl' unhide
186+
add path 'da*' unhide
187+
add path 'ada*' unhide
188+
add path 'nda*' unhide
189+
```
167190

168191
# Contributing
169192

0 commit comments

Comments
 (0)