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
bb694aac
Commit
bb694aac
authored
7 years ago
by
Tom Cherry
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Disallow vendor_init from accessing core_data_file_type"
parents
97c56bdd
564d5e39
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/vendor_init.te
+7
-87
7 additions, 87 deletions
public/vendor_init.te
with
7 additions
and
87 deletions
public/vendor_init.te
+
7
−
87
View file @
bb694aac
...
...
@@ -33,127 +33,47 @@ allow vendor_init self:global_capability_class_set { chown fowner fsetid };
allow vendor_init {
file_type
-app_data_file
-bluetooth_data_file
-dalvikcache_data_file
-core_data_file_type
-exec_type
-incident_data_file
-keystore_data_file
-misc_logd_file
-network_watchlist_data_file
-nfc_data_file
-property_data_file
-radio_data_file
-shell_data_file
-system_app_data_file
-system_file
-system_ndebug_socket
-unlabeled
-vendor_file_type
-vold_data_file
-zoneinfo_data_file
}:dir { create search getattr open read setattr ioctl };
}:dir { create search getattr open read setattr ioctl write add_name remove_name rmdir relabelfrom };
allow vendor_init {
file_type
-app_data_file
-bluetooth_data_file
-dalvikcache_data_file
-core_data_file_type
-exec_type
-incident_data_file
-keystore_data_file
-misc_logd_file
-network_watchlist_data_file
-nfc_data_file
-property_data_file
-radio_data_file
-shell_data_file
-system_app_data_file
-system_file
-system_ndebug_socket
-unlabeled
-vendor_file_type
-vold_data_file
-zoneinfo_data_file
}:dir { write add_name remove_name rmdir relabelfrom };
allow vendor_init {
file_type
-app_data_file
-bluetooth_data_file
-dalvikcache_data_file
-runtime_event_log_tags_file
-exec_type
-incident_data_file
-keystore_data_file
-misc_logd_file
-network_watchlist_data_file
-nfc_data_file
-property_data_file
-radio_data_file
-shell_data_file
-system_app_data_file
-system_file
-system_ndebug_socket
-unlabeled
-vendor_file_type
-vold_data_file
-zoneinfo_data_file
}:file { create getattr open read write setattr relabelfrom unlink };
allow vendor_init {
file_type
-app_data_file
-bluetooth_data_file
-dalvikcache_data_file
-core_data_file_type
-exec_type
-incident_data_file
-keystore_data_file
-misc_logd_file
-network_watchlist_data_file
-nfc_data_file
-property_data_file
-radio_data_file
-shell_data_file
-system_app_data_file
-system_file
-system_ndebug_socket
-unlabeled
-vendor_file_type
-vold_data_file
-zoneinfo_data_file
}:{ sock_file fifo_file } { create getattr open read setattr relabelfrom unlink };
allow vendor_init {
file_type
-app_data_file
-bluetooth_data_file
-dalvikcache_data_file
-core_data_file_type
-exec_type
-incident_data_file
-keystore_data_file
-misc_logd_file
-network_watchlist_data_file
-nfc_data_file
-property_data_file
-radio_data_file
-shell_data_file
-system_app_data_file
-system_file
-system_ndebug_socket
-unlabeled
-vendor_file_type
-vold_data_file
-zoneinfo_data_file
}:lnk_file { create getattr setattr relabelfrom unlink };
allow vendor_init {
file_type
-core_data_file_type
-exec_type
-system_file
-vendor_file_type
-exec_type
-vold_data_file
-keystore_data_file
}:dir_file_class_set relabelto;
allow vendor_init dev_type:dir create_dir_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