Merge "Relax neverallows for vendor to use /system/bin/sh" into android14-tests-dev am: a1260cfa21

Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2988072

Change-Id: If21747c23ef463345f1f2e19e0c389e084b2fd90
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Jooyung Han 2024-03-06 06:58:55 +00:00 committed by Automerger Merge Worker
commit c6d23b47d8
2 changed files with 13 additions and 1 deletions

View file

@ -903,6 +903,9 @@ full_treble_only(`
-crash_dump_exec
-netutils_wrapper_exec
userdebug_or_eng(`-tcpdump_exec')
# Vendor components still can invoke shell commands via /system/bin/sh
-shell_exec
-toolbox_exec
}:file { entrypoint execute execute_no_trans };
')
@ -983,6 +986,9 @@ full_treble_only(`
-task_profiles_api_file
-task_profiles_file
userdebug_or_eng(`-tcpdump_exec')
# Vendor components still can invoke shell commands via /system/bin/sh
-shell_exec
-toolbox_exec
}:file *;
')

View file

@ -83,7 +83,13 @@ neverallow {
halserverdomain
-hal_dumpstate_server
-hal_telephony_server
} { file_type fs_type }:file execute_no_trans;
} {
file_type
fs_type
# May invoke shell commands via /system/bin/sh
-shell_exec
-toolbox_exec
}:file execute_no_trans;
# Do not allow a process other than init to transition into a HAL domain.
neverallow { domain -init } halserverdomain:process transition;
# Only allow transitioning to a domain by running its executable. Do not