This commit is contained in:
Patrick Schleizer 2024-07-24 11:27:51 -04:00
parent 3bf1f26c0b
commit 4a5312b3a9
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -13,14 +13,14 @@ store_dir="/var/lib/permission-hardener"
dpkg_admindir_parameter_existing_mode="--admindir ${store_dir}/existing_mode"
dpkg_admindir_parameter_new_mode="--admindir ${store_dir}/new_mode"
log_level=info
log_level=notice
# shellcheck disable=SC1091
source /usr/libexec/helper-scripts/log_run_die.sh
echo_wrapper_ignore() {
if test "${1}" = "verbose"; then
shift
log info "Run: $*"
log notice "Run: $*"
else
shift
fi
@ -30,7 +30,7 @@ echo_wrapper_ignore() {
echo_wrapper_audit() {
if test "${1}" = "verbose"; then
shift
log info "Run: $*"
log notice "Run: $*"
else
shift
fi
@ -559,7 +559,7 @@ apply() {
sanity_tests
parse_config_folder
log info "\
log notice "\
To compare the current and previous permission modes, install 'meld' (or preferred diff tool) for comparison of file mode changes:
sudo apt install --no-install-recommends meld
meld ${store_dir}/existing_mode/statoverride ${store_dir}/new_mode/statoverride"