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
10960aec
Commit
10960aec
authored
8 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Add selinux policy for legacy Wifi HAL"
parents
60c436cb
a18b41e7
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide 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 @
10960aec
...
@@ -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 @
10960aec
# 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 @
10960aec
...
@@ -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