Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sepolicy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test
platform
system
sepolicy
Commits
2f722694
Commit
2f722694
authored
9 years ago
by
Alex Deymo
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Revert "Remove "exec_type" from postinstall_file.""
parents
536b3334
f43af3a6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
file.te
+1
-1
1 addition, 1 deletion
file.te
update_engine.te
+9
-3
9 additions, 3 deletions
update_engine.te
with
10 additions
and
4 deletions
file.te
+
1
−
1
View file @
2f722694
...
@@ -117,7 +117,7 @@ type storage_stub_file, file_type;
...
@@ -117,7 +117,7 @@ type storage_stub_file, file_type;
# /postinstall: Mount point used by update_engine to run postinstall.
# /postinstall: Mount point used by update_engine to run postinstall.
type postinstall_mnt_dir, file_type;
type postinstall_mnt_dir, file_type;
# Files inside the /postinstall mountpoint are all labeled as postinstall_file.
# Files inside the /postinstall mountpoint are all labeled as postinstall_file.
type postinstall_file, file_type;
type postinstall_file, file_type
, exec_type
;
# /data/misc subdirectories
# /data/misc subdirectories
type adb_keys_file, file_type, data_file_type;
type adb_keys_file, file_type, data_file_type;
...
...
This diff is collapsed.
Click to expand it.
update_engine.te
+
9
−
3
View file @
2f722694
...
@@ -36,13 +36,19 @@ allow update_engine postinstall_mnt_dir:dir mounton;
...
@@ -36,13 +36,19 @@ allow update_engine postinstall_mnt_dir:dir mounton;
allow update_engine postinstall_file:filesystem { mount unmount relabelfrom relabelto };
allow update_engine postinstall_file:filesystem { mount unmount relabelfrom relabelto };
allow update_engine labeledfs:filesystem relabelfrom;
allow update_engine labeledfs:filesystem relabelfrom;
# Allow update_engine to read and execute postinstall_file, which is what the
# Allow update_engine to read and execute postinstall_file.
# postinstall program is relabeled to regardless of its attributes in the new
# system. The postinstall program will run in the "postinstall" domain.
allow update_engine postinstall_file:file rx_file_perms;
allow update_engine postinstall_file:file rx_file_perms;
allow update_engine postinstall_file:lnk_file r_file_perms;
allow update_engine postinstall_file:lnk_file r_file_perms;
allow update_engine postinstall_file:dir r_dir_perms;
allow update_engine postinstall_file:dir r_dir_perms;
# The postinstall program is run by update_engine and will always be tagged as a
# postinstall_file regardless of its attributes in the new system.
domain_auto_trans(update_engine, postinstall_file, postinstall)
# A postinstall program is typically a shell script (with a #!), so we allow
# to execute those.
allow update_engine shell_exec:file rx_file_perms;
# Register the service to perform Binder IPC.
# Register the service to perform Binder IPC.
binder_use(update_engine)
binder_use(update_engine)
allow update_engine update_engine_service:service_manager { add };
allow update_engine update_engine_service:service_manager { add };
...
...
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