Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sepolicy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test
platform
system
sepolicy
Commits
97a2cfdf
Commit
97a2cfdf
authored
10 years ago
by
Paul Jensen
Committed by
Nick Kralevich
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Allow Bluetooth app to initiate DHCP service on bt-pan interface.
bug:15407087 Change-Id: I3dea9c1110583f11f093d048455a1cc739d05658
parent
04e730b6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
bluetooth.te
+2
-0
2 additions, 0 deletions
bluetooth.te
dhcp.te
+1
-0
1 addition, 0 deletions
dhcp.te
property.te
+2
-0
2 additions, 0 deletions
property.te
property_contexts
+2
-0
2 additions, 0 deletions
property_contexts
system_server.te
+1
-0
1 addition, 0 deletions
system_server.te
with
8 additions
and
0 deletions
bluetooth.te
+
2
−
0
View file @
97a2cfdf
...
@@ -45,6 +45,8 @@ allow bluetooth proc_bluetooth_writable:file rw_file_perms;
...
@@ -45,6 +45,8 @@ allow bluetooth proc_bluetooth_writable:file rw_file_perms;
# Allow write access to bluetooth specific properties
# Allow write access to bluetooth specific properties
allow bluetooth bluetooth_prop:property_service set;
allow bluetooth bluetooth_prop:property_service set;
allow bluetooth pan_result_prop:property_service set;
allow bluetooth ctl_dhcp_pan_prop:property_service set;
###
###
### Neverallow rules
### Neverallow rules
...
...
This diff is collapsed.
Click to expand it.
dhcp.te
+
1
−
0
View file @
97a2cfdf
...
@@ -14,6 +14,7 @@ allow dhcp system_file:file rx_file_perms;
...
@@ -14,6 +14,7 @@ allow dhcp system_file:file rx_file_perms;
# For /proc/sys/net/ipv4/conf/*/promote_secondaries
# For /proc/sys/net/ipv4/conf/*/promote_secondaries
allow dhcp proc_net:file write;
allow dhcp proc_net:file write;
allow dhcp system_prop:property_service set ;
allow dhcp system_prop:property_service set ;
allow dhcp pan_result_prop:property_service set;
unix_socket_connect(dhcp, property, init)
unix_socket_connect(dhcp, property, init)
type_transition dhcp system_data_file:{ dir file } dhcp_data_file;
type_transition dhcp system_data_file:{ dir file } dhcp_data_file;
...
...
This diff is collapsed.
Click to expand it.
property.te
+
2
−
0
View file @
97a2cfdf
...
@@ -8,6 +8,7 @@ type vold_prop, property_type;
...
@@ -8,6 +8,7 @@ type vold_prop, property_type;
type rild_prop, property_type;
type rild_prop, property_type;
type ctl_bootanim_prop, property_type;
type ctl_bootanim_prop, property_type;
type ctl_default_prop, property_type;
type ctl_default_prop, property_type;
type ctl_dhcp_pan_prop, property_type;
type ctl_dumpstate_prop, property_type;
type ctl_dumpstate_prop, property_type;
type ctl_fuse_prop, property_type;
type ctl_fuse_prop, property_type;
type ctl_mdnsd_prop, property_type;
type ctl_mdnsd_prop, property_type;
...
@@ -17,4 +18,5 @@ type audio_prop, property_type;
...
@@ -17,4 +18,5 @@ type audio_prop, property_type;
type logd_prop, property_type;
type logd_prop, property_type;
type security_prop, property_type;
type security_prop, property_type;
type bluetooth_prop, property_type;
type bluetooth_prop, property_type;
type pan_result_prop, property_type;
type powerctl_prop, property_type;
type powerctl_prop, property_type;
This diff is collapsed.
Click to expand it.
property_contexts
+
2
−
0
View file @
97a2cfdf
...
@@ -25,6 +25,7 @@ sys.powerctl u:object_r:powerctl_prop:s0
...
@@ -25,6 +25,7 @@ sys.powerctl u:object_r:powerctl_prop:s0
service. u:object_r:system_prop:s0
service. u:object_r:system_prop:s0
wlan. u:object_r:system_prop:s0
wlan. u:object_r:system_prop:s0
dhcp. u:object_r:system_prop:s0
dhcp. u:object_r:system_prop:s0
dhcp.bt-pan.result u:object_r:pan_result_prop:s0
bluetooth. u:object_r:bluetooth_prop:s0
bluetooth. u:object_r:bluetooth_prop:s0
debug. u:object_r:debug_prop:s0
debug. u:object_r:debug_prop:s0
...
@@ -57,4 +58,5 @@ ctl.fuse_ u:object_r:ctl_fuse_prop:s0
...
@@ -57,4 +58,5 @@ ctl.fuse_ u:object_r:ctl_fuse_prop:s0
ctl.mdnsd u:object_r:ctl_mdnsd_prop:s0
ctl.mdnsd u:object_r:ctl_mdnsd_prop:s0
ctl.ril-daemon u:object_r:ctl_rildaemon_prop:s0
ctl.ril-daemon u:object_r:ctl_rildaemon_prop:s0
ctl.bugreport u:object_r:ctl_bugreport_prop:s0
ctl.bugreport u:object_r:ctl_bugreport_prop:s0
ctl.dhcpcd_bt-pan u:object_r:ctl_dhcp_pan_prop:s0
ctl. u:object_r:ctl_default_prop:s0
ctl. u:object_r:ctl_default_prop:s0
This diff is collapsed.
Click to expand it.
system_server.te
+
1
−
0
View file @
97a2cfdf
...
@@ -277,6 +277,7 @@ allow system_server powerctl_prop:property_service set;
...
@@ -277,6 +277,7 @@ allow system_server powerctl_prop:property_service set;
# ctl interface
# ctl interface
allow system_server ctl_default_prop:property_service set;
allow system_server ctl_default_prop:property_service set;
allow system_server ctl_dhcp_pan_prop:property_service set;
allow system_server ctl_bugreport_prop:property_service set;
allow system_server ctl_bugreport_prop:property_service set;
# Create a socket for receiving info from wpa.
# Create a socket for receiving info from wpa.
...
...
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