summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2006-05-03 15:40:43 +0000
committererdgeist <erdgeist@erdgeist.org>2006-05-03 15:40:43 +0000
commitb5acbdb9036346482acbc32ded6dfb3774f38f8a (patch)
tree71f16e50d4fd04a8447ba6bc1ddcfe950839fcf0 /ezjail-admin
parentdd8855ee99b3744a05f75780dd46db01f734778c (diff)
jailid detection failed, when security.jail.set_hostname_allowed=1 and another hostname was set
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-xezjail-admin3
1 files changed, 2 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin
index 3e665f4..5e30c9f 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -71,7 +71,8 @@ fetchjailinfo () {
71 eval ezjail_ip=\"\$jail_${ezjail_safename}_ip\" 71 eval ezjail_ip=\"\$jail_${ezjail_safename}_ip\"
72 72
73 ezjail_softlink=${ezjail_jaildir}/`basename -- ${ezjail_rootdir}` 73 ezjail_softlink=${ezjail_jaildir}/`basename -- ${ezjail_rootdir}`
74 ezjail_id=`jls | grep " ${ezjail_hostname} " | head -n 1 | awk '{print $1}'` 74 [ -f /var/run/jail_${ezjail_safename}.id ] && ezjail_id=`cat /var/run/jail_${ezjail_safename}.id` || return
75 jls | grep -q -E "^ +${ezjail_id} " || unset ezjail_id
75} 76}
76 77
77# fill the base jail - this function is used by install and update 78# fill the base jail - this function is used by install and update