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
07ff6107
Commit
07ff6107
authored
7 years ago
by
Tianjie Xu
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Allow update_engine to access /data/misc/update_engine_log"
parents
185941aa
6fe014f8
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
private/compat/26.0/26.0.ignore.cil
+1
-0
1 addition, 0 deletions
private/compat/26.0/26.0.ignore.cil
private/file_contexts
+1
-0
1 addition, 0 deletions
private/file_contexts
public/file.te
+1
-0
1 addition, 0 deletions
public/file.te
public/update_engine.te
+6
-2
6 additions, 2 deletions
public/update_engine.te
with
9 additions
and
2 deletions
private/compat/26.0/26.0.ignore.cil
+
1
−
0
View file @
07ff6107
...
...
@@ -34,6 +34,7 @@
thermalserviced_tmpfs
timezone_service
tombstoned_java_trace_socket
update_engine_log_data_file
vendor_init
vold_prepare_subdirs
vold_prepare_subdirs_exec
...
...
This diff is collapsed.
Click to expand it.
private/file_contexts
+
1
−
0
View file @
07ff6107
...
...
@@ -387,6 +387,7 @@
/data/misc/vold(/.*)? u:object_r:vold_data_file:s0
/data/misc/perfprofd(/.*)? u:object_r:perfprofd_data_file:s0
/data/misc/update_engine(/.*)? u:object_r:update_engine_data_file:s0
/data/misc/update_engine_log(/.*)? u:object_r:update_engine_log_data_file:s0
/data/system/heapdump(/.*)? u:object_r:heapdump_data_file:s0
/data/misc/trace(/.*)? u:object_r:method_trace_data_file:s0
# TODO(calin) label profile reference differently so that only
...
...
This diff is collapsed.
Click to expand it.
public/file.te
+
1
−
0
View file @
07ff6107
...
...
@@ -240,6 +240,7 @@ type vold_data_file, file_type, data_file_type, core_data_file_type;
type perfprofd_data_file, file_type, data_file_type, core_data_file_type, mlstrustedobject;
type tee_data_file, file_type, data_file_type;
type update_engine_data_file, file_type, data_file_type, core_data_file_type;
type update_engine_log_data_file, file_type, data_file_type, core_data_file_type;
# /data/misc/trace for method traces on userdebug / eng builds
type method_trace_data_file, file_type, data_file_type, core_data_file_type, mlstrustedobject;
...
...
This diff is collapsed.
Click to expand it.
public/update_engine.te
+
6
−
2
View file @
07ff6107
...
...
@@ -20,8 +20,12 @@ wakelock_use(update_engine);
dontaudit update_engine kernel:process setsched;
# Allow using persistent storage in /data/misc/update_engine.
allow update_engine update_engine_data_file:dir { create_dir_perms };
allow update_engine update_engine_data_file:file { create_file_perms };
allow update_engine update_engine_data_file:dir create_dir_perms;
allow update_engine update_engine_data_file:file create_file_perms;
# Allow using persistent storage in /data/misc/update_engine_log.
allow update_engine update_engine_log_data_file:dir create_dir_perms;
allow update_engine update_engine_log_data_file:file create_file_perms;
# Don't allow kernel module loading, just silence the logs.
dontaudit update_engine kernel:system module_request;
...
...
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