mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-26 12:25:54 -05:00
refactoring
This commit is contained in:
parent
2c163bf439
commit
fa895ee11e
@ -27,12 +27,12 @@ add_statoverride_entry() {
|
||||
if test -u "${file_name}" || test -g "${file_name}"; then
|
||||
string_length_of_existing_mode="${#existing_mode}"
|
||||
if [ "$string_length_of_existing_mode" = "4" ]; then
|
||||
newmode="${existing_mode:1}"
|
||||
new_mode="${existing_mode:1}"
|
||||
else
|
||||
newmode="${existing_mode}"
|
||||
new_mode="${existing_mode}"
|
||||
fi
|
||||
|
||||
echo "suid - file_name: '${file_name}' | existing_mode: '${existing_mode}' | newmode: '$newmode'"
|
||||
echo "suid - file_name: '${file_name}' | existing_mode: '${existing_mode}' | new_mode: '$new_mode'"
|
||||
|
||||
if dpkg-statoverride --list | grep -q "${file_name}"; then
|
||||
if ! dpkg-statoverride --list | grep -q "${owner} ${group} ${existing_mode:1} ${file_name}"; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user