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
d89bc600
Commit
d89bc600
authored
8 years ago
by
Mitchell Wills
Committed by
android-build-merger
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Add selinux policy for legacy Wifi HAL" am:
10960aec
am:
3acba6df
Change-Id: I47d52553a72930b13890dfbc32b192af4ca3fde3
parents
1bca4117
3acba6df
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
file_contexts
+2
-0
2 additions, 0 deletions
file_contexts
wifi_hal_legacy.te
+22
-0
22 additions, 0 deletions
wifi_hal_legacy.te
wificond.te
+3
-0
3 additions, 0 deletions
wificond.te
with
27 additions
and
0 deletions
file_contexts
+
2
−
0
View file @
d89bc600
...
@@ -215,6 +215,8 @@
...
@@ -215,6 +215,8 @@
/system/bin/idmap u:object_r:idmap_exec:s0
/system/bin/idmap u:object_r:idmap_exec:s0
/system/bin/update_engine u:object_r:update_engine_exec:s0
/system/bin/update_engine u:object_r:update_engine_exec:s0
/system/bin/bspatch u:object_r:update_engine_exec:s0
/system/bin/bspatch u:object_r:update_engine_exec:s0
/system/bin/hw/wifi_hal_legacy u:object_r:wifi_hal_legacy_exec:s0
#############################
#############################
# Vendor files
# Vendor files
...
...
This diff is collapsed.
Click to expand it.
wifi_hal_legacy.te
0 → 100644
+
22
−
0
View file @
d89bc600
# wifi legacy hal
type wifi_hal_legacy, domain;
type wifi_hal_legacy_exec, exec_type, file_type;
# may be started by init
init_daemon_domain(wifi_hal_legacy)
## hwbinder access
hwbinder_use(wifi_hal_legacy)
## call into wificond process (callbacks)
binder_call(wifi_hal_legacy, wificond)
r_dir_file(wifi_hal_legacy, proc_net)
r_dir_file(wifi_hal_legacy, sysfs_type)
allow wifi_hal_legacy self:udp_socket create_socket_perms;
allow wifi_hal_legacy self:capability { net_admin net_raw };
# allow wifi_hal_legacy to speak to nl80211 in the kernel
allow wifi_hal_legacy self:netlink_socket create_socket_perms_no_ioctl;
# newer kernels (e.g. 4.4 but not 4.1) have a new class for sockets
allow wifi_hal_legacy self:netlink_generic_socket create_socket_perms_no_ioctl;
This diff is collapsed.
Click to expand it.
wificond.te
+
3
−
0
View file @
d89bc600
...
@@ -8,6 +8,9 @@ binder_use(wificond)
...
@@ -8,6 +8,9 @@ binder_use(wificond)
binder_call(wificond, system_server)
binder_call(wificond, system_server)
binder_call(wificond, wpa)
binder_call(wificond, wpa)
hwbinder_use(wificond)
binder_call(wificond, wifi_hal_legacy)
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.
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