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
f7bfd489
Commit
f7bfd489
authored
8 years ago
by
Lorenzo Colitti
Browse files
Options
Downloads
Patches
Plain Diff
Allow bugreports to dump the native netd service state.
Bug: 28251026 Change-Id: I73dce178b873d45e703896f12c10325af2ade81d
parent
0959aa67
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumpstate.te
+3
-2
3 additions, 2 deletions
dumpstate.te
netd.te
+4
-3
4 additions, 3 deletions
netd.te
with
7 additions
and
5 deletions
dumpstate.te
+
3
−
2
View file @
f7bfd489
...
@@ -70,7 +70,8 @@ allow dumpstate { dm_device cache_block_device }:blk_file getattr;
...
@@ -70,7 +70,8 @@ allow dumpstate { dm_device cache_block_device }:blk_file getattr;
# Allow dumpstate to make binder calls to any binder service
# Allow dumpstate to make binder calls to any binder service
binder_call(dumpstate, binderservicedomain)
binder_call(dumpstate, binderservicedomain)
binder_call(dumpstate, { appdomain autoplay_app })
binder_call(dumpstate, { appdomain autoplay_app netd })
# Reading /proc/PID/maps of other processes
# Reading /proc/PID/maps of other processes
allow dumpstate self:capability sys_ptrace;
allow dumpstate self:capability sys_ptrace;
...
@@ -123,7 +124,7 @@ userdebug_or_eng(`
...
@@ -123,7 +124,7 @@ userdebug_or_eng(`
allow dumpstate misc_logd_file:file r_file_perms;
allow dumpstate misc_logd_file:file r_file_perms;
')
')
allow dumpstate { service_manager_type -gatekeeper_service
-netd_service
}:service_manager find;
allow dumpstate { service_manager_type -gatekeeper_service }:service_manager find;
allow dumpstate servicemanager:service_manager list;
allow dumpstate servicemanager:service_manager list;
allow dumpstate devpts:chr_file rw_file_perms;
allow dumpstate devpts:chr_file rw_file_perms;
...
...
This diff is collapsed.
Click to expand it.
netd.te
+
4
−
3
View file @
f7bfd489
...
@@ -60,6 +60,7 @@ set_prop(netd, ctl_mdnsd_prop)
...
@@ -60,6 +60,7 @@ set_prop(netd, ctl_mdnsd_prop)
# Allow netd to publish a binder service and make binder calls.
# Allow netd to publish a binder service and make binder calls.
binder_use(netd)
binder_use(netd)
allow netd netd_service:service_manager add;
allow netd netd_service:service_manager add;
allow netd dumpstate:fifo_file { getattr write };
# Allow netd to call into the system server so it can check permissions.
# Allow netd to call into the system server so it can check permissions.
allow netd system_server:binder call;
allow netd system_server:binder call;
...
@@ -90,7 +91,7 @@ neverallow netd system_file:dir_file_class_set write;
...
@@ -90,7 +91,7 @@ neverallow netd system_file:dir_file_class_set write;
# Write to files in /data/data or system files on /data
# Write to files in /data/data or system files on /data
neverallow netd { app_data_file system_data_file }:dir_file_class_set write;
neverallow netd { app_data_file system_data_file }:dir_file_class_set write;
# only system_server may interact with netd over binder
# only system_server
and dumpstate
may interact with netd over binder
neverallow { domain -system_server } netd_service:service_manager find;
neverallow { domain -system_server
-dumpstate
} netd_service:service_manager find;
neverallow { domain -system_server } netd:binder call;
neverallow { domain -system_server
-dumpstate
} netd:binder call;
neverallow netd { domain -system_server -servicemanager userdebug_or_eng(`-su') }:binder call;
neverallow netd { domain -system_server -servicemanager userdebug_or_eng(`-su') }:binder call;
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