diff options
author | erdgeist <erdgeist@erdgeist.org> | 2006-09-12 11:17:02 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2006-09-12 11:17:02 +0000 |
commit | 0075b0454d21740d63e4eb270e81e1ef910f434e (patch) | |
tree | cf36709157dbb31df7d24d3e452a0c63409c912e /ezjail.sh | |
parent | c935628f63309e49ba9874144a1e042d42462dbe (diff) |
Check for root dir before running a jail. Thanks to Matthias Lederhofer.
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-x | ezjail.sh | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -65,6 +65,9 @@ do_cmd() | |||
65 | eval ezjail_attachblocking=\"\$jail_${ezjail}_attachblocking\" | 65 | eval ezjail_attachblocking=\"\$jail_${ezjail}_attachblocking\" |
66 | eval ezjail_forceblocking=\"\$jail_${ezjail}_forceblocking\" | 66 | eval ezjail_forceblocking=\"\$jail_${ezjail}_forceblocking\" |
67 | 67 | ||
68 | # Do we still have a root to run in? | ||
69 | [ ! -d "${ezjail_rootdir}" ] && echo " Warning: root directory ${ezjail_rootdir} of ${ezjail} does not exist." && continue | ||
70 | |||
68 | [ "${ezjail_attachblocking}" = "YES" -o "${ezjail_forceblocking}" = "YES" ] && ezjail_blocking="YES" || unset ezjail_blocking | 71 | [ "${ezjail_attachblocking}" = "YES" -o "${ezjail_forceblocking}" = "YES" ] && ezjail_blocking="YES" || unset ezjail_blocking |
69 | 72 | ||
70 | # Cannot auto mount blocking jails without interrupting boot process | 73 | # Cannot auto mount blocking jails without interrupting boot process |