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
1193bdf4
Commit
1193bdf4
authored
10 years ago
by
dcashman
Committed by
Android Git Automerger
10 years ago
Browse files
Options
Downloads
Plain Diff
am
6843a793
: am
8f81dcad
: Only allow system_server to send commands to zygote.
* commit '
6843a793
': Only allow system_server to send commands to zygote.
parents
3e616ee8
6843a793
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
access_vectors
+0
-8
0 additions, 8 deletions
access_vectors
domain.te
+4
-0
4 additions, 0 deletions
domain.te
system_server.te
+0
-3
0 additions, 3 deletions
system_server.te
with
4 additions
and
11 deletions
access_vectors
+
0
−
8
View file @
1193bdf4
...
@@ -876,14 +876,6 @@ class binder
...
@@ -876,14 +876,6 @@ class binder
transfer
transfer
}
}
class zygote
{
specifyids
specifyrlimits
specifyinvokewith
specifyseinfo
}
class property_service
class property_service
{
{
set
set
...
...
This diff is collapsed.
Click to expand it.
domain.te
+
4
−
0
View file @
1193bdf4
...
@@ -344,6 +344,10 @@ neverallow {
...
@@ -344,6 +344,10 @@ neverallow {
-dex2oat
-dex2oat
} dalvikcache_data_file:file no_w_file_perms;
} dalvikcache_data_file:file no_w_file_perms;
# Only system_server should be able to send commands via the zygote socket
neverallow { domain -zygote -system_server } zygote:unix_stream_socket connectto;
neverallow { domain -system_server } zygote_socket:sock_file write;
# Android does not support System V IPCs.
# Android does not support System V IPCs.
#
#
# The reason for this is due to the fact that, by design, they lead to global
# The reason for this is due to the fact that, by design, they lead to global
...
...
This diff is collapsed.
Click to expand it.
system_server.te
+
0
−
3
View file @
1193bdf4
...
@@ -300,9 +300,6 @@ allow system_server wpa_socket:sock_file unlink;
...
@@ -300,9 +300,6 @@ allow system_server wpa_socket:sock_file unlink;
type_transition system_server system_data_file:sock_file system_ndebug_socket "ndebugsocket";
type_transition system_server system_data_file:sock_file system_ndebug_socket "ndebugsocket";
allow system_server system_ndebug_socket:sock_file create_file_perms;
allow system_server system_ndebug_socket:sock_file create_file_perms;
# Specify any arguments to zygote.
allow system_server self:zygote { specifyids specifyrlimits specifyseinfo };
# Manage cache files.
# Manage cache files.
allow system_server cache_file:dir { relabelfrom create_dir_perms };
allow system_server cache_file:dir { relabelfrom create_dir_perms };
allow system_server cache_file:file { relabelfrom create_file_perms };
allow system_server cache_file:file { relabelfrom create_file_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