mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-02 19:38:10 +00:00
feat: audit-secureblue: check for filesystem=host:ro and device=all (#535)
This commit is contained in:
@@ -652,6 +652,11 @@ audit-secureblue:
|
|||||||
status="$STATUS_FAILURE"
|
status="$STATUS_FAILURE"
|
||||||
warnings+=("> $f is not using hardened_malloc!")
|
warnings+=("> $f is not using hardened_malloc!")
|
||||||
fi
|
fi
|
||||||
|
if ! hasPermission "$permissions" "filesystems" "host-os:ro"; then
|
||||||
|
status="$STATUS_FAILURE"
|
||||||
|
warnings+=("> $f is missing host-os:ro permission,
|
||||||
|
> which is needed to load hardened_malloc!")
|
||||||
|
fi
|
||||||
if [[ "$bluetooth_loaded" == "true" ]] && hasPermission "$permissions" "features" "bluetooth"; then
|
if [[ "$bluetooth_loaded" == "true" ]] && hasPermission "$permissions" "features" "bluetooth"; then
|
||||||
status="$STATUS_FAILURE"
|
status="$STATUS_FAILURE"
|
||||||
warnings+=("> $f has bluetooth access!")
|
warnings+=("> $f has bluetooth access!")
|
||||||
@@ -664,6 +669,12 @@ audit-secureblue:
|
|||||||
status="$STATUS_FAILURE"
|
status="$STATUS_FAILURE"
|
||||||
warnings+=("> $f has inter-process communications access!")
|
warnings+=("> $f has inter-process communications access!")
|
||||||
fi
|
fi
|
||||||
|
if hasPermission "$permissions" "devices" "all"; then
|
||||||
|
[[ "$status" != "$STATUS_FAILURE" ]] && status="$STATUS_WARNING"
|
||||||
|
warnings+=("> $f has device=all permission,
|
||||||
|
> granting access to GPU, input devices, raw USB, and virtualization,
|
||||||
|
> and introducing a vector for sandbox escapes!")
|
||||||
|
fi
|
||||||
flatpak_test_string="Auditing $f"
|
flatpak_test_string="Auditing $f"
|
||||||
print_status "$flatpak_test_string" "$status"
|
print_status "$flatpak_test_string" "$status"
|
||||||
for warning in "${warnings[@]}"; do
|
for warning in "${warnings[@]}"; do
|
||||||
|
|||||||
Reference in New Issue
Block a user