-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mount: allow [ro|rw|rq|sw|xx] as available mount options #802
base: master
Are you sure you want to change the base?
Conversation
tested and worked for me. tried: root@fbsd:/home/bmccormick/bastille # bastille mount static1 /etc/resolv.conf /usr/resolv.conf nullfs rw,nosuid,mode=01777 0 0 |
Allow and require at least on of the following strings inside the "options" string of mount.
rw
ro
rq
sw
xx
According to fstab documentation.
Testing
Mount files and directories into jail(s) with different combos of comma separated options, making sure one (and only one) of the above options are also present.
Example
bastille mount jailname /host/path /jail/path nullfs rw,nosuid,mode=01777 0 0
orbastille mount jailname /host/path /jail/path nullfs nosuid,ro,mode=01777 0 0