Skip to content
Snippets Groups Projects
Commit 02e44d0e authored by Nick Kralevich's avatar Nick Kralevich Committed by android-build-merger
Browse files

kernel.te: tighten entrypoint / execute_no_trans neverallow am: 02cfce49

am: 74b84259

Change-Id: I23b54c3f1d4b335b073096980bb27b34cb3ebaa2
parents 5955b137 74b84259
Branches
Tags
No related merge requests found
...@@ -87,9 +87,6 @@ neverallow * kernel:process { transition dyntransition }; ...@@ -87,9 +87,6 @@ neverallow * kernel:process { transition dyntransition };
# possible causes include: # possible causes include:
# - The program is a kernel usermodehelper. In this case, define a domain # - The program is a kernel usermodehelper. In this case, define a domain
# for the program and domain_auto_trans() to it. # for the program and domain_auto_trans() to it.
# - You failed to setcon u:r:init:s0 in your init.rc and thus your init
# program was left in the kernel domain and is now trying to execute
# some other program. Fix your init.rc file.
# - You are running an exploit which switched to the init task credentials # - You are running an exploit which switched to the init task credentials
# and is then trying to exec a shell or other program. You lose! # and is then trying to exec a shell or other program. You lose!
neverallow kernel { file_type fs_type -rootfs }:file { entrypoint execute_no_trans }; neverallow kernel *:file { entrypoint execute_no_trans };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment