Lines 40-45
fi
Link Here
|
40 |
: ${security_status_baseaudit_quiet:=NO} |
40 |
: ${security_status_baseaudit_quiet:=NO} |
41 |
: ${security_status_baseaudit_chroots=$pkg_chroots} |
41 |
: ${security_status_baseaudit_chroots=$pkg_chroots} |
42 |
: ${security_status_baseaudit_jails=$pkg_jails} |
42 |
: ${security_status_baseaudit_jails=$pkg_jails} |
|
|
43 |
: ${security_status_baseaudit_jails_ignore=""} |
43 |
: ${security_status_baseaudit_expiry:=2} |
44 |
: ${security_status_baseaudit_expiry:=2} |
44 |
|
45 |
|
45 |
# Compute PKG_DBDIR from the config file. |
46 |
# Compute PKG_DBDIR from the config file. |
Lines 166-171
audit_base_all() {
Link Here
|
166 |
esac |
167 |
esac |
167 |
|
168 |
|
168 |
for j in $jails ; do |
169 |
for j in $jails ; do |
|
|
170 |
# ignore some jails |
171 |
if [ -n "$security_status_baseaudit_jails_ignore" ]; then |
172 |
# we iterate to get exact matches because we want substring matches |
173 |
# foo should not match foo.bar |
174 |
for ignore in $security_status_baseaudit_jails_ignore ; do |
175 |
if [ "${j%|*}" == "$ignore" ]; then |
176 |
echo |
177 |
echo "ignoring jail: ${j%|*}" |
178 |
# continue with the main loop |
179 |
continue 2 |
180 |
fi |
181 |
done |
182 |
fi |
169 |
echo |
183 |
echo |
170 |
echo "jail: ${j%|*}" |
184 |
echo "jail: ${j%|*}" |
171 |
audit_base "-j ${j%|*}" ${j##*|} |
185 |
audit_base "-j ${j%|*}" ${j##*|} |