Modify function for dpkg verity
This commit is contained in:
parent
dc19e48928
commit
e6f204b7f0
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Binary file not shown.
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue