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
62acdaa7
Commit
62acdaa7
authored
8 years ago
by
Josh Gao
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Allow fallback crash dumping for seccomped processes."
parents
4e3a4c7b
12b4750f
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
public/domain.te
+10
-1
10 additions, 1 deletion
public/domain.te
public/mediacodec.te
+1
-0
1 addition, 0 deletions
public/mediacodec.te
public/mediaextractor.te
+2
-0
2 additions, 0 deletions
public/mediaextractor.te
public/te_macros
+12
-0
12 additions, 0 deletions
public/te_macros
with
25 additions
and
1 deletion
public/domain.te
+
10
−
1
View file @
62acdaa7
...
@@ -452,8 +452,17 @@ neverallow {
...
@@ -452,8 +452,17 @@ neverallow {
-crash_dump
-crash_dump
-dumpstate
-dumpstate
-system_server
-system_server
# Processes that can't exec crash_dump
-mediacodec
-mediaextractor
} tombstoned:unix_stream_socket connectto;
} tombstoned:unix_stream_socket connectto;
neverallow { domain -crash_dump } tombstoned_crash_socket:sock_file write;
neverallow {
domain
-crash_dump
-mediacodec
-mediaextractor
} tombstoned_crash_socket:sock_file write;
neverallow { domain -dumpstate -system_server } tombstoned_intercept_socket:sock_file write;
neverallow { domain -dumpstate -system_server } tombstoned_intercept_socket:sock_file write;
# Android does not support System V IPCs.
# Android does not support System V IPCs.
...
...
This diff is collapsed.
Click to expand it.
public/mediacodec.te
+
1
−
0
View file @
62acdaa7
...
@@ -19,6 +19,7 @@ allow mediacodec ion_device:chr_file rw_file_perms;
...
@@ -19,6 +19,7 @@ allow mediacodec ion_device:chr_file rw_file_perms;
allow mediacodec hal_graphics_allocator:fd use;
allow mediacodec hal_graphics_allocator:fd use;
allow mediacodec hal_camera:fd use;
allow mediacodec hal_camera:fd use;
crash_dump_fallback(mediacodec)
# hidl access
# hidl access
hwbinder_use(mediacodec)
hwbinder_use(mediacodec)
...
...
This diff is collapsed.
Click to expand it.
public/mediaextractor.te
+
2
−
0
View file @
62acdaa7
...
@@ -18,6 +18,8 @@ allow mediaextractor system_server:fd use;
...
@@ -18,6 +18,8 @@ allow mediaextractor system_server:fd use;
r_dir_file(mediaextractor, cgroup)
r_dir_file(mediaextractor, cgroup)
allow mediaextractor proc_meminfo:file r_file_perms;
allow mediaextractor proc_meminfo:file r_file_perms;
crash_dump_fallback(mediaextractor)
###
###
### neverallow rules
### neverallow rules
###
###
...
...
This diff is collapsed.
Click to expand it.
public/te_macros
+
12
−
0
View file @
62acdaa7
...
@@ -390,6 +390,18 @@ define(`recovery_only', ifelse(target_recovery, `true', $1, ))
...
@@ -390,6 +390,18 @@ define(`recovery_only', ifelse(target_recovery, `true', $1, ))
#
#
define(`userdebug_or_eng', ifelse(target_build_variant, `eng', $1, ifelse(target_build_variant, `userdebug', $1)))
define(`userdebug_or_eng', ifelse(target_build_variant, `eng', $1, ifelse(target_build_variant, `userdebug', $1)))
####################################
# Fallback crash handling for processes that can't exec crash_dump (e.g. because of seccomp).
#
define(`crash_dump_fallback', `
userdebug_or_eng(`
allow $1 su:fifo_file append;
')
allow $1 anr_data_file:file append;
allow $1 tombstoned:unix_stream_socket connectto;
allow $1 tombstoned_crash_socket:sock_file write;
')
#####################################
#####################################
# WITH_DEXPREOPT builds
# WITH_DEXPREOPT builds
# SELinux rules which apply only when pre-opting.
# SELinux rules which apply only when pre-opting.
...
...
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