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
d233350b
Commit
d233350b
authored
11 years ago
by
Nick Kralevich
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Support running adbd in the su domain."
parents
2c1a0ad7
7d0f955e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
adbd.te
+1
-0
1 addition, 0 deletions
adbd.te
domain.te
+14
-0
14 additions, 0 deletions
domain.te
su.te
+5
-0
5 additions, 0 deletions
su.te
with
20 additions
and
0 deletions
adbd.te
+
1
−
0
View file @
d233350b
...
...
@@ -4,6 +4,7 @@ type adbd, domain;
userdebug_or_eng(`
permissive adbd;
allow adbd su:process dyntransition;
')
domain_auto_trans(adbd, shell_exec, shell)
...
...
This diff is collapsed.
Click to expand it.
domain.te
+
14
−
0
View file @
d233350b
...
...
@@ -28,6 +28,20 @@ allow domain adbd:unix_stream_socket connectto;
allow domain adbd:fd use;
allow domain adbd:unix_stream_socket { getattr getopt read write shutdown };
userdebug_or_eng(`
# Same as adbd rules above, except allow su to do the same thing
allow domain su:unix_stream_socket connectto;
allow domain su:fd use;
allow domain su:unix_stream_socket { getattr getopt read write shutdown };
# Running something like "pm dump com.android.bluetooth" requires
# fifo writes
allow domain su:fifo_file { write getattr };
# allow "gdbserver --attach" to work for su.
allow domain su:process sigchld;
')
###
### Talk to debuggerd.
###
...
...
This diff is collapsed.
Click to expand it.
su.te
+
5
−
0
View file @
d233350b
...
...
@@ -12,6 +12,11 @@ userdebug_or_eng(`
# su is unconfined.
unconfined_domain(su)
allow su ashmem_device:chr_file execute;
allow su self:process execmem;
tmpfs_domain(su)
allow su su_tmpfs:file execute;
# su is also permissive to permit setenforce.
permissive su;
')
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