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
3a78d30b
Commit
3a78d30b
authored
8 years ago
by
Roshan Pius
Committed by
android-build-merger
8 years ago
Browse files
Options
Downloads
Plain Diff
hal_wifi: Allow system_server to access wifi HIDL services am:
02ed21e8
am:
7f1b8ad8
Change-Id: I651a93f9363fbe73d47912fcb6c856f76bae5359
parents
a8063522
7f1b8ad8
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
public/hal_wifi.te
+2
-2
2 additions, 2 deletions
public/hal_wifi.te
public/system_server.te
+12
-7
12 additions, 7 deletions
public/system_server.te
public/wificond.te
+0
-4
0 additions, 4 deletions
public/wificond.te
public/wpa.te
+1
-1
1 addition, 1 deletion
public/wpa.te
with
15 additions
and
14 deletions
public/hal_wifi.te
+
2
−
2
View file @
3a78d30b
...
@@ -5,8 +5,8 @@ type hal_wifi_exec, exec_type, file_type;
...
@@ -5,8 +5,8 @@ type hal_wifi_exec, exec_type, file_type;
## hwbinder access
## hwbinder access
hwbinder_use(hal_wifi)
hwbinder_use(hal_wifi)
## call into
wificond process (
callbacks)
## call into
system_server process (for invoking
callbacks)
binder_call(hal_wifi,
wificond
)
binder_call(hal_wifi,
system_server
)
r_dir_file(hal_wifi, proc_net)
r_dir_file(hal_wifi, proc_net)
r_dir_file(hal_wifi, sysfs_type)
r_dir_file(hal_wifi, sysfs_type)
...
...
This diff is collapsed.
Click to expand it.
public/system_server.te
+
12
−
7
View file @
3a78d30b
...
@@ -146,13 +146,6 @@ allow system_server surfaceflinger:unix_stream_socket { read write setopt };
...
@@ -146,13 +146,6 @@ allow system_server surfaceflinger:unix_stream_socket { read write setopt };
# Perform Binder IPC.
# Perform Binder IPC.
binder_use(system_server)
binder_use(system_server)
binder_call(system_server, hal_boot)
binder_call(system_server, hal_light)
binder_call(system_server, hal_memtrack)
binder_call(system_server, hal_power)
binder_call(system_server, hal_thermal)
binder_call(system_server, hal_vibrator)
binder_call(system_server, hal_vr)
binder_call(system_server, { appdomain ephemeral_app })
binder_call(system_server, { appdomain ephemeral_app })
binder_call(system_server, binderservicedomain)
binder_call(system_server, binderservicedomain)
binder_call(system_server, dumpstate)
binder_call(system_server, dumpstate)
...
@@ -163,6 +156,18 @@ binder_call(system_server, netd)
...
@@ -163,6 +156,18 @@ binder_call(system_server, netd)
binder_call(system_server, wificond)
binder_call(system_server, wificond)
binder_service(system_server)
binder_service(system_server)
# Perform HwBinder IPC.
hwbinder_use(system_server)
binder_call(system_server, hal_boot)
binder_call(system_server, hal_light)
binder_call(system_server, hal_memtrack)
binder_call(system_server, hal_power)
binder_call(system_server, hal_thermal)
binder_call(system_server, hal_vibrator)
binder_call(system_server, hal_vr)
binder_call(system_server, hal_wifi)
binder_call(system_server, wpa)
# Ask debuggerd to dump backtraces for native stacks of interest.
# Ask debuggerd to dump backtraces for native stacks of interest.
#
#
# This is derived from the list that system server defines as interesting native processes
# This is derived from the list that system server defines as interesting native processes
...
...
This diff is collapsed.
Click to expand it.
public/wificond.te
+
0
−
4
View file @
3a78d30b
...
@@ -5,10 +5,6 @@ type wificond_exec, exec_type, file_type;
...
@@ -5,10 +5,6 @@ type wificond_exec, exec_type, file_type;
binder_use(wificond)
binder_use(wificond)
binder_call(wificond, system_server)
binder_call(wificond, system_server)
hwbinder_use(wificond)
binder_call(wificond, hal_wifi)
binder_call(wificond, wpa)
allow wificond wificond_service:service_manager { add find };
allow wificond wificond_service:service_manager { add find };
# wificond writes firmware paths to this file.
# wificond writes firmware paths to this file.
...
...
This diff is collapsed.
Click to expand it.
public/wpa.te
+
1
−
1
View file @
3a78d30b
...
@@ -26,7 +26,7 @@ binder_use(wpa)
...
@@ -26,7 +26,7 @@ binder_use(wpa)
# HIDL interface exposed by WPA.
# HIDL interface exposed by WPA.
hwbinder_use(wpa)
hwbinder_use(wpa)
binder_call(wpa,
wificond
)
binder_call(wpa,
system_server
)
# Create a socket for receiving info from wpa
# Create a socket for receiving info from wpa
allow wpa wpa_socket:dir create_dir_perms;
allow wpa wpa_socket:dir create_dir_perms;
...
...
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