forked from aosp-mirror/platform_frameworks_base
-
Notifications
You must be signed in to change notification settings - Fork 69
replace the exec spawning implementation; add compat zygote instance which uses scudo instead of hardened_malloc #364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
muhomorr
wants to merge
35
commits into
GrapheneOS:16-qpr2
Choose a base branch
from
muhomorr:16-qpr2_06-12_base
base: 16-qpr2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
188eb8f
fixup! support for per-app dynamic code loading restrictions
muhomorr af53bfd
Revert "match the initial call stack between exec and zygote spawning"
muhomorr 6211b12
Revert "exec spawning: add workaround for late init of ART userfaultf…
muhomorr 8ac7055
Revert "exec spawning: support disabling hardened_malloc and extended…
muhomorr 78965f1
Revert "exec spawning: don't close the binder connection when the app…
muhomorr 480df60
Revert "add a wrapper for execveat(2)"
muhomorr 0c93020
remove the previous exec spawning implementation
muhomorr cf94099
fixup! AppBindArgs: infrastructure for passing extra args to app proc…
muhomorr 9b6c191
fixup! exec spawning: support runtime resource overlays
muhomorr c8d4d09
gosps: add USE_EXEC_SPAWNING flags
muhomorr 5e5cda3
add exec spawning implementation
muhomorr 6c6f222
refactor zygote infrastructure to support arbitrary number of zygotes
muhomorr 2d1e1b6
add compat zygote instance which uses scudo instead of hardened_malloc
muhomorr 14d1513
add GosCompatSecureSpawnTests
inthewaves 26163a3
adjust GosCompatSecureSpawnTests to exec spawning changes
muhomorr 346244e
fixup! add base class for complex per-app switches
muhomorr 82c56ce
fixup! add per-app setting for hardened_malloc and extended VA space
muhomorr 6321859
fixup! add connectivity checks setting and its migration from Setting…
muhomorr e30221d
fixup! add exec spawning implementation
muhomorr 92b6c5a
fixup! gosps: add USE_EXEC_SPAWNING flags
muhomorr 8a9dd14
fixup! refactor zygote infrastructure to support arbitrary number of …
muhomorr 43dbbca
fixup! add compat zygote instance which uses scudo instead of hardene…
muhomorr 6c983a6
fixup! add exec spawning implementation
muhomorr 8ce048e
fixup! add exec spawning implementation
muhomorr 7e91067
fixup! add compat zygote instance which uses scudo instead of hardene…
muhomorr f5ac3d7
fixup! add compat zygote instance which uses scudo instead of hardene…
muhomorr e0acbf0
fixup! add exec spawning implementation
muhomorr 837ec57
fixup! add exec spawning implementation
muhomorr aa8c224
fixup! add exec spawning implementation
muhomorr 2d9b0db
fixup! add exec spawning implementation
muhomorr 22141b7
fixup! add exec spawning implementation
muhomorr 3a5a33d
fixup! add exec spawning implementation
muhomorr ea6744b
fixup! add exec spawning implementation
muhomorr 486c24c
fixup! add exec spawning implementation
muhomorr 3063d1a
fixup! add exec spawning implementation
muhomorr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
core/java/android/ext/settings/app/AswUseExecSpawning.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| package android.ext.settings.app; | ||
|
|
||
| import android.content.Context; | ||
| import android.content.pm.ApplicationInfo; | ||
| import android.content.pm.GosPackageState; | ||
| import android.content.pm.GosPackageStateFlag; | ||
| import android.ext.settings.ExtSettings; | ||
|
|
||
| import com.android.server.os.nano.AppCompatProtos; | ||
|
|
||
| /** @hide */ | ||
| public class AswUseExecSpawning extends AppSwitch { | ||
| public static final AswUseExecSpawning I = new AswUseExecSpawning(); | ||
|
|
||
| private AswUseExecSpawning() { | ||
| gosPsFlag = GosPackageStateFlag.USE_EXEC_SPAWNING; | ||
| gosPsFlagNonDefault = GosPackageStateFlag.USE_EXEC_SPAWNING_NON_DEFAULT; | ||
| compatChangeToDisableHardening = AppCompatProtos.USE_ZYGOTE_SPAWNING; | ||
| } | ||
|
|
||
| @Override | ||
| public Boolean getImmutableValue(Context ctx, int userId, ApplicationInfo appInfo, | ||
| GosPackageState ps, StateInfo si) { | ||
| if (ps.hasFlag(GosPackageStateFlag.ENABLE_EXPLOIT_PROTECTION_COMPAT_MODE)) { | ||
| si.immutabilityReason = IR_EXPLOIT_PROTECTION_COMPAT_MODE; | ||
| return Boolean.FALSE; | ||
| } | ||
|
|
||
| return null; | ||
| } | ||
|
|
||
| @Override | ||
| protected boolean getDefaultValueInner(Context ctx, int userId, ApplicationInfo appInfo, | ||
| GosPackageState ps, StateInfo si) { | ||
| return ExtSettings.EXEC_SPAWNING.get(); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.