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
f723f5f9
Commit
f723f5f9
authored
9 years ago
by
Lorenzo Colitti
Committed by
Android (Google) Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Revert "netd: restrict netd binder access to system_server"" into nyc-dev
parents
8c09b65d
b5594c27
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
domain.te
+1
-2
1 addition, 2 deletions
domain.te
dumpstate.te
+1
-1
1 addition, 1 deletion
dumpstate.te
netd.te
+1
-5
1 addition, 5 deletions
netd.te
shell.te
+1
-1
1 addition, 1 deletion
shell.te
system_app.te
+1
-1
1 addition, 1 deletion
system_app.te
with
5 additions
and
10 deletions
domain.te
+
1
−
2
View file @
f723f5f9
...
@@ -38,8 +38,7 @@ userdebug_or_eng(`
...
@@ -38,8 +38,7 @@ userdebug_or_eng(`
allow domain su:fd use;
allow domain su:fd use;
allow domain su:unix_stream_socket { getattr getopt read write shutdown };
allow domain su:unix_stream_socket { getattr getopt read write shutdown };
allow { domain -init } su:binder { call transfer };
binder_call({ domain -init }, su)
allow { domain -init } su:fd use;
# Running something like "pm dump com.android.bluetooth" requires
# Running something like "pm dump com.android.bluetooth" requires
# fifo writes
# fifo writes
...
...
This diff is collapsed.
Click to expand it.
dumpstate.te
+
1
−
1
View file @
f723f5f9
...
@@ -113,7 +113,7 @@ allow dumpstate tombstone_data_file:file r_file_perms;
...
@@ -113,7 +113,7 @@ allow dumpstate tombstone_data_file:file r_file_perms;
allow dumpstate cache_recovery_file:dir r_dir_perms;
allow dumpstate cache_recovery_file:dir r_dir_perms;
allow dumpstate cache_recovery_file:file r_file_perms;
allow dumpstate cache_recovery_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
+
1
−
5
View file @
f723f5f9
...
@@ -57,6 +57,7 @@ set_prop(netd, ctl_mdnsd_prop)
...
@@ -57,6 +57,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)
binder_service(netd)
allow netd netd_service:service_manager add;
allow netd netd_service:service_manager add;
# 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.
...
@@ -83,8 +84,3 @@ neverallow netd system_file:dir_file_class_set write;
...
@@ -83,8 +84,3 @@ 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
neverallow { domain -system_server } netd_service:service_manager find;
neverallow { domain -system_server } netd:binder call;
neverallow netd { domain -system_server -servicemanager userdebug_or_eng(`-su') }:binder call;
This diff is collapsed.
Click to expand it.
shell.te
+
1
−
1
View file @
f723f5f9
...
@@ -83,7 +83,7 @@ allow shell kernel:system syslog_read;
...
@@ -83,7 +83,7 @@ allow shell kernel:system syslog_read;
# allow shell access to services
# allow shell access to services
allow shell servicemanager:service_manager list;
allow shell servicemanager:service_manager list;
# don't allow shell to access GateKeeper service
# don't allow shell to access GateKeeper service
allow shell { service_manager_type -gatekeeper_service
-netd_service
}:service_manager find;
allow shell { service_manager_type -gatekeeper_service }:service_manager find;
# allow shell to look through /proc/ for ps, top, netstat
# allow shell to look through /proc/ for ps, top, netstat
r_dir_file(shell, proc)
r_dir_file(shell, proc)
...
...
This diff is collapsed.
Click to expand it.
system_app.te
+
1
−
1
View file @
f723f5f9
...
@@ -43,7 +43,7 @@ allow system_app anr_data_file:file create_file_perms;
...
@@ -43,7 +43,7 @@ allow system_app anr_data_file:file create_file_perms;
allow system_app asec_apk_file:file r_file_perms;
allow system_app asec_apk_file:file r_file_perms;
allow system_app servicemanager:service_manager list;
allow system_app servicemanager:service_manager list;
allow system_app
{
service_manager_type
-netd_service }
:service_manager find;
allow system_app service_manager_type:service_manager find;
allow system_app keystore:keystore_key {
allow system_app keystore:keystore_key {
get_state
get_state
...
...
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