mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-19 08:40:44 +01:00
mount: allow mount with options behind permissions
Allow mounting with permissions like “rw,other,options” that are needed for tmpfs mounting.
This commit is contained in:
@@ -89,8 +89,8 @@ elif [ ! -e "${_hostpath}" ] || [ "${_type}" != "nullfs" ]; then
|
|||||||
usage
|
usage
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Mount permissions need to be "ro" or "rw"
|
# Mount permissions,options need to start with "ro" or "rw"
|
||||||
if [ "${_perms}" != "ro" ] && [ "${_perms}" != "rw" ]; then
|
if ! echo "${_perms}" | grep -Eq 'r[w|o],.*$'; then
|
||||||
error_notify "Detected invalid mount permissions in FSTAB."
|
error_notify "Detected invalid mount permissions in FSTAB."
|
||||||
warn "Format: /host/path /jail/path nullfs ro 0 0"
|
warn "Format: /host/path /jail/path nullfs ro 0 0"
|
||||||
warn "Read: ${_fstab}"
|
warn "Read: ${_fstab}"
|
||||||
|
|||||||
Reference in New Issue
Block a user