mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-10 07:06:43 +07:00
disable debugging
This commit is contained in:
parent
1fe83d683f
commit
aef796a524
@ -31,21 +31,15 @@ undo_all() {
|
|||||||
fi
|
fi
|
||||||
true "owner: '$owner' group: '$group' mode: '$mode' file_name: '$file_name'"
|
true "owner: '$owner' group: '$group' mode: '$mode' file_name: '$file_name'"
|
||||||
|
|
||||||
stat -c "%n %a %U %G" "$file_name" || true
|
|
||||||
|
|
||||||
chown "${owner}:${group}" "$file_name" || exit_code=202
|
chown "${owner}:${group}" "$file_name" || exit_code=202
|
||||||
## chmod need to be run after chown since chown removes suid.
|
## chmod need to be run after chown since chown removes suid.
|
||||||
## https://unix.stackexchange.com/questions/53665/chown-removes-setuid-bit-bug-or-feature
|
## https://unix.stackexchange.com/questions/53665/chown-removes-setuid-bit-bug-or-feature
|
||||||
chmod "$mode" "$file_name" || exit_code=203
|
chmod "$mode" "$file_name" || exit_code=203
|
||||||
|
|
||||||
stat -c "%n %a %U %G" "$file_name" || true
|
|
||||||
|
|
||||||
dpkg-statoverride --remove "$file_name" &>/dev/null || true
|
dpkg-statoverride --remove "$file_name" &>/dev/null || true
|
||||||
dpkg-statoverride $dpkg_admindir_parameter_existing_mode --remove "$file_name" &>/dev/null || true
|
dpkg-statoverride $dpkg_admindir_parameter_existing_mode --remove "$file_name" &>/dev/null || true
|
||||||
dpkg-statoverride $dpkg_admindir_parameter_new_mode --remove "$file_name" &>/dev/null || true
|
dpkg-statoverride $dpkg_admindir_parameter_new_mode --remove "$file_name" &>/dev/null || true
|
||||||
|
|
||||||
stat -c "%n %a %U %G" "$file_name" || true
|
|
||||||
|
|
||||||
done < "/var/lib/permission-hardening/existing_mode/statoverride"
|
done < "/var/lib/permission-hardening/existing_mode/statoverride"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user