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
f57e2fd7
Commit
f57e2fd7
authored
9 years ago
by
Nick Kralevich
Committed by
Android Git Automerger
9 years ago
Browse files
Options
Downloads
Plain Diff
am
de11f501
: Remove ptrace from app.te
* commit '
de11f501
': Remove ptrace from app.te
parents
8fc8d1f0
de11f501
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
app.te
+0
-3
0 additions, 3 deletions
app.te
isolated_app.te
+7
-0
7 additions, 0 deletions
isolated_app.te
untrusted_app.te
+3
-0
3 additions, 0 deletions
untrusted_app.te
with
10 additions
and
3 deletions
app.te
+
0
−
3
View file @
f57e2fd7
...
@@ -19,9 +19,6 @@ allow appdomain zygote:fd use;
...
@@ -19,9 +19,6 @@ allow appdomain zygote:fd use;
# valgrind needs mmap exec for zygote
# valgrind needs mmap exec for zygote
allow appdomain zygote_exec:file rx_file_perms;
allow appdomain zygote_exec:file rx_file_perms;
# gdbserver for ndk-gdb ptrace attaches to app process.
allow appdomain self:process ptrace;
# Read system properties managed by zygote.
# Read system properties managed by zygote.
allow appdomain zygote_tmpfs:file read;
allow appdomain zygote_tmpfs:file read;
...
...
This diff is collapsed.
Click to expand it.
isolated_app.te
+
7
−
0
View file @
f57e2fd7
...
@@ -21,6 +21,13 @@ allow isolated_app display_service:service_manager find;
...
@@ -21,6 +21,13 @@ allow isolated_app display_service:service_manager find;
# only allow unprivileged socket ioctl commands
# only allow unprivileged socket ioctl commands
allow isolated_app self:{ rawip_socket tcp_socket udp_socket } unpriv_sock_ioctls;
allow isolated_app self:{ rawip_socket tcp_socket udp_socket } unpriv_sock_ioctls;
# Google Breakpad (crash reporter for Chrome) relies on ptrace
# functionality. Without the ability to ptrace, the crash reporter
# tool is broken.
# b/20150694
# https://code.google.com/p/chromium/issues/detail?id=475270
allow isolated_app self:process ptrace;
#####
#####
##### Neverallow
##### Neverallow
#####
#####
...
...
This diff is collapsed.
Click to expand it.
untrusted_app.te
+
3
−
0
View file @
f57e2fd7
...
@@ -113,6 +113,9 @@ userdebug_or_eng(`
...
@@ -113,6 +113,9 @@ userdebug_or_eng(`
allow untrusted_app perfprofd_data_file:dir r_dir_perms;
allow untrusted_app perfprofd_data_file:dir r_dir_perms;
')
')
# gdbserver for ndk-gdb ptrace attaches to app process.
allow untrusted_app self:process ptrace;
# Programs routinely attempt to scan through /system, looking
# Programs routinely attempt to scan through /system, looking
# for files. Suppress the denials when they occur.
# for files. Suppress the denials when they occur.
dontaudit untrusted_app exec_type:file getattr;
dontaudit untrusted_app exec_type:file getattr;
...
...
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