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
12aac021
Commit
12aac021
authored
9 years ago
by
Erik Kline
Committed by
Android (Google) Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Permit bluetooth to run DhcpClient" into nyc-dev
parents
f40afcb1
5fba8e11
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
bluetooth.te
+4
-2
4 additions, 2 deletions
bluetooth.te
netd.te
+0
-9
0 additions, 9 deletions
netd.te
with
4 additions
and
11 deletions
bluetooth.te
+
4
−
2
View file @
12aac021
...
...
@@ -24,6 +24,8 @@ allow bluetooth self:capability net_admin;
allow bluetooth self:capability2 wake_alarm;
# tethering
allow bluetooth self:packet_socket create_socket_perms;
allow bluetooth self:capability { net_admin net_raw net_bind_service };
allow bluetooth self:tun_socket create_socket_perms;
allow bluetooth efs_file:dir search;
...
...
@@ -59,6 +61,6 @@ allow bluetooth shell_data_file:file read;
###
# Superuser capabilities.
# bluetooth requires net_admin, wake_alarm and block_suspend
neverallow bluetooth self:capability ~net_admin;
# bluetooth requires net_
{
admin,
raw,bind_service} and
wake_alarm and block_suspend
.
neverallow bluetooth self:capability ~
{
net_admin
net_raw net_bind_service }
;
neverallow bluetooth self:capability2 ~{ wake_alarm block_suspend };
This diff is collapsed.
Click to expand it.
netd.te
+
0
−
9
View file @
12aac021
...
...
@@ -30,15 +30,6 @@ allow netd proc_net:file write;
# XXX Split into its own type.
allow netd sysfs:file write;
# Set dhcp lease for PAN connection
set_prop(netd, dhcp_prop)
set_prop(netd, system_prop)
auditallow netd system_prop:property_service set;
# Connect to PAN
domain_auto_trans(netd, dhcp_exec, dhcp)
allow netd dhcp:process signal;
# Needed to update /data/misc/wifi/hostapd.conf
# TODO: See what we can do to reduce the need for
# these capabilities
...
...
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