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
087601e0
Commit
087601e0
authored
9 years ago
by
Nick Kralevich
Committed by
android-build-merger
9 years ago
Browse files
Options
Downloads
Plain Diff
Allow bluetooth access to the tun device.
am:
9a1347ee
* commit '
9a1347ee
': Allow bluetooth access to the tun device.
parents
0551e9e8
9a1347ee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
app.te
+0
-3
0 additions, 3 deletions
app.te
bluetooth.te
+1
-0
1 addition, 0 deletions
bluetooth.te
isolated_app.te
+3
-0
3 additions, 0 deletions
isolated_app.te
untrusted_app.te
+3
-0
3 additions, 0 deletions
untrusted_app.te
with
7 additions
and
3 deletions
app.te
+
0
−
3
View file @
087601e0
...
@@ -408,6 +408,3 @@ neverallow appdomain {
...
@@ -408,6 +408,3 @@ neverallow appdomain {
security_file
security_file
tmpfs
tmpfs
}:lnk_file no_w_file_perms;
}:lnk_file no_w_file_perms;
# Do not allow Apps to directly open tun_device
neverallow appdomain tun_device:chr_file open;
This diff is collapsed.
Click to expand it.
bluetooth.te
+
1
−
0
View file @
087601e0
...
@@ -25,6 +25,7 @@ allow bluetooth self:capability2 wake_alarm;
...
@@ -25,6 +25,7 @@ allow bluetooth self:capability2 wake_alarm;
# tethering
# tethering
allow bluetooth self:tun_socket create_socket_perms;
allow bluetooth self:tun_socket create_socket_perms;
allow bluetooth tun_device:chr_file rw_file_perms;
allow bluetooth efs_file:dir search;
allow bluetooth efs_file:dir search;
# proc access.
# proc access.
...
...
This diff is collapsed.
Click to expand it.
isolated_app.te
+
3
−
0
View file @
087601e0
...
@@ -29,6 +29,9 @@ allow isolated_app self:process ptrace;
...
@@ -29,6 +29,9 @@ allow isolated_app self:process ptrace;
##### Neverallow
##### Neverallow
#####
#####
# Do not allow isolated_app to directly open tun_device
neverallow isolated_app tun_device:chr_file open;
# Do not allow isolated_app to set system properties.
# Do not allow isolated_app to set system properties.
neverallow isolated_app property_socket:sock_file write;
neverallow isolated_app property_socket:sock_file write;
neverallow isolated_app property_type:property_service set;
neverallow isolated_app property_type:property_service set;
...
...
This diff is collapsed.
Click to expand it.
untrusted_app.te
+
3
−
0
View file @
087601e0
...
@@ -170,3 +170,6 @@ neverallow untrusted_app {
...
@@ -170,3 +170,6 @@ neverallow untrusted_app {
-coredump_file # userdebug/eng only
-coredump_file # userdebug/eng only
')
')
}:dir_file_class_set { create unlink };
}:dir_file_class_set { create unlink };
# Do not allow untrusted_app to directly open tun_device
neverallow untrusted_app tun_device:chr_file open;
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