| | 1317 | # 5.0.2 Check file permissions |
|---|
| | 1318 | # ********************************************************** |
|---|
| | 1319 | # If there are any files which cannot be read by "others". |
|---|
| | 1320 | oIFS="$IFS" |
|---|
| | 1321 | IFS=$'\n' |
|---|
| | 1322 | local found_symlinks |
|---|
| | 1323 | for f in $(find "$payload_dir" -type f); do |
|---|
| | 1324 | if [[ $(expr $(stat --format=%a $f) % 10) < 5 ]]; then |
|---|
| | 1325 | red; outn "WARNING: "; normal; out "Inappropriate permissions on $f, can't be read by others!"; |
|---|
| | 1326 | fi |
|---|
| | 1327 | done |
|---|
| | 1328 | IFS="$oIFS" |
|---|
| | 1329 | |
|---|
| | 1330 | # ********************************************************** |
|---|