diff options
author | erdgeist <erdgeist@erdgeist.org> | 2007-01-24 11:31:04 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2007-01-24 11:31:04 +0000 |
commit | 6179ac659086a528a950cfb1380544879be163b4 (patch) | |
tree | 15d72949b725fb5a2c5b7685166fde37bc986a27 | |
parent | bdbb4f9f37406900e1cf721869b955b8796f3e09 (diff) |
Check for secure level since ezjail will fail if it is -gt 0
-rwxr-xr-x | ezjail-admin | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ezjail-admin b/ezjail-admin index 9e4e8f7..de91655 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -523,6 +523,7 @@ setup|update) | |||
523 | # Bump the user for some of the most common errors | 523 | # Bump the user for some of the most common errors |
524 | [ -d ${ezjail_sourcetree} ] || exerr "Cannot find your copy of the FreeBSD source tree in ${ezjail_sourcetree}." | 524 | [ -d ${ezjail_sourcetree} ] || exerr "Cannot find your copy of the FreeBSD source tree in ${ezjail_sourcetree}." |
525 | [ -e ${ezjail_sourcetree}/Makefile ] || exerr "Your source tree in ${ezjail_sourcetree} seems to be incomplete (Makefile missing)." | 525 | [ -e ${ezjail_sourcetree}/Makefile ] || exerr "Your source tree in ${ezjail_sourcetree} seems to be incomplete (Makefile missing)." |
526 | [ "`sysctl -n kern.securelevel`" -gt 0 ] || exerr "You're running in a secure level higher than 0. ezjail will not run correctly." | ||
526 | 527 | ||
527 | # Normally fulljail should be renamed by past ezjail-admin commands. | 528 | # Normally fulljail should be renamed by past ezjail-admin commands. |
528 | # However those may have failed | 529 | # However those may have failed |
@@ -562,6 +563,8 @@ install) | |||
562 | ezjail_dir=${ezjail_ftphost#file://} | 563 | ezjail_dir=${ezjail_ftphost#file://} |
563 | [ "${ezjail_dir%%[!/]*}" ] || ezjail_reldir=${PWD} | 564 | [ "${ezjail_dir%%[!/]*}" ] || ezjail_reldir=${PWD} |
564 | 565 | ||
566 | [ "`sysctl -n kern.securelevel`" -gt 0 ] || exerr "You're running in a secure level higher than 0. ezjail will not run correctly." | ||
567 | |||
565 | # ftp servers normally wont provide non-RELEASE-builds | 568 | # ftp servers normally wont provide non-RELEASE-builds |
566 | if [ -z "${ezjail_release}" -a "${ezjail_dir}" = "${ezjail_ftphost}" ]; then | 569 | if [ -z "${ezjail_release}" -a "${ezjail_dir}" = "${ezjail_ftphost}" ]; then |
567 | ezjail_release=`uname -r` | 570 | ezjail_release=`uname -r` |