mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-08 09:47:52 -05:00
sanity test
This commit is contained in:
parent
cc2b335ee6
commit
a16dd8474b
@ -99,6 +99,7 @@ add_nosuid_statoverride_entry() {
|
|||||||
|
|
||||||
if [ ! "$file_name" = "$file_name_from_stat" ]; then
|
if [ ! "$file_name" = "$file_name_from_stat" ]; then
|
||||||
log error "\
|
log error "\
|
||||||
|
function add_nosuid_statoverride_entry:
|
||||||
file_name is different from file_name_from_stat:
|
file_name is different from file_name_from_stat:
|
||||||
line: '${line}'
|
line: '${line}'
|
||||||
file_name '${file_name}'
|
file_name '${file_name}'
|
||||||
@ -401,6 +402,16 @@ set_file_perms() {
|
|||||||
existing_owner="${arr[2]}"
|
existing_owner="${arr[2]}"
|
||||||
existing_group="${arr[3]}"
|
existing_group="${arr[3]}"
|
||||||
|
|
||||||
|
if [ ! "$file_name" = "$file_name_from_stat" ]; then
|
||||||
|
log error "\
|
||||||
|
function set_file_perms:
|
||||||
|
file_name is different from file_name_from_stat:
|
||||||
|
line: '${line}'
|
||||||
|
file_name '${file_name}'
|
||||||
|
file_name_from_stat: '${file_name_from_stat}'" >&2
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
if test -z "${file_name}"; then
|
if test -z "${file_name}"; then
|
||||||
log error "File name is empty. Stat output: '${stat_output}', line: '${line}'" >&2
|
log error "File name is empty. Stat output: '${stat_output}', line: '${line}'" >&2
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user