Modify function for dpkg verity

This commit is contained in:
samson 2018-12-03 00:47:10 +08:00
parent dc19e48928
commit e6f204b7f0
4 changed files with 5 additions and 3 deletions

View File

@ -34,7 +34,7 @@ audit () {
# This function will be called if the script status is on enabled mode
apply () {
info "Removing suid on valid binary may seriously harm your system, report only here"
warn "Removing suid on valid binary may seriously harm your system, report only here, need a manual fix."
}
# This function will create the config file for this check with default values

View File

@ -62,7 +62,7 @@ audit () {
# This function will be called if the script status is on enabled mode
apply () {
info "Editing items from PATH may seriously harm your system, report only here"
warn "Editing items from PATH may seriously harm your system, report only here, need a manual fix."
}
# This function will check config parameters required

BIN
lib/.utils.sh.swp Normal file

Binary file not shown.

View File

@ -467,8 +467,10 @@ is_debian_9()
verify_integrity_all_packages()
{
if [ $($SUDO_CMD dpkg -V | wc -l) -gt 0 ]; then
dpkg -V > /dev/shm/dpkg_verify_ret
if [ $(cat /dev/shm/dpkg_verify_ret | wc -l) -gt 0 ]; then
debug "Verify integrity all packages is fail"
cat /dev/shm/dpkg_verify_ret
FNRET=1
else
debug "Verify integrity all packages is OK"