Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemSEPolicy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
8da4bf51
Commit
8da4bf51
authored
7 years ago
by
Sandeep Patil
Committed by
android-build-merger
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Allow init to run vendor toybox for modprobe" into oc-dev am:
d5a2f3e2
am:
3abc81ce
Change-Id: If6350ea61bd6447af7913a7b474e719e0f7707d3
parents
d1d6b39d
3abc81ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
private/init.te
+1
-2
1 addition, 2 deletions
private/init.te
public/vendor_toolbox.te
+6
-2
6 additions, 2 deletions
public/vendor_toolbox.te
with
7 additions
and
4 deletions
private/init.te
+
1
−
2
View file @
8da4bf51
...
@@ -14,8 +14,7 @@ recovery_only(`
...
@@ -14,8 +14,7 @@ recovery_only(`
domain_trans(init, shell_exec, shell)
domain_trans(init, shell_exec, shell)
domain_trans(init, init_exec, ueventd)
domain_trans(init, init_exec, ueventd)
domain_trans(init, init_exec, watchdogd)
domain_trans(init, init_exec, watchdogd)
domain_trans(init, rootfs, modprobe)
domain_trans(init, { rootfs toolbox_exec vendor_toolbox_exec }, modprobe)
domain_trans(init, toolbox_exec, modprobe)
# case where logpersistd is actually logcat -f in logd context (nee: logcatd)
# case where logpersistd is actually logcat -f in logd context (nee: logcatd)
userdebug_or_eng(`
userdebug_or_eng(`
domain_auto_trans(init, logcat_exec, logpersist)
domain_auto_trans(init, logcat_exec, logpersist)
...
...
This diff is collapsed.
Click to expand it.
public/vendor_toolbox.te
+
6
−
2
View file @
8da4bf51
...
@@ -7,6 +7,10 @@ type vendor_toolbox_exec, exec_type, vendor_file_type, file_type;
...
@@ -7,6 +7,10 @@ type vendor_toolbox_exec, exec_type, vendor_file_type, file_type;
# or read, execute the vendor_toolbox file.
# or read, execute the vendor_toolbox file.
full_treble_only(`
full_treble_only(`
# Do not allow non-vendor domains to transition
# Do not allow non-vendor domains to transition
# to vendor toolbox
# to vendor toolbox except for the whitelisted domains.
neverallow coredomain vendor_toolbox_exec:file { entrypoint execute execute_no_trans };
neverallow {
coredomain
-init
-modprobe
} vendor_toolbox_exec:file { entrypoint execute execute_no_trans };
')
')
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment