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
93d34842
Commit
93d34842
authored
6 years ago
by
Tri Vo
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Reland "Neverallow vendor code access to files on /system.""
parents
24e2b824
e6b1a4ca
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/domain.te
+30
-13
30 additions, 13 deletions
public/domain.te
with
30 additions
and
13 deletions
public/domain.te
+
30
−
13
View file @
93d34842
...
@@ -1091,9 +1091,10 @@ full_treble_only(`
...
@@ -1091,9 +1091,10 @@ full_treble_only(`
-vendor_executes_system_violators
-vendor_executes_system_violators
-vendor_init
-vendor_init
} {
} {
exec_type
system_file_type
-system_file # TODO(b/111243627): remove once Treble violations are fixed.
-system_lib_file
-system_linker_exec
-system_linker_exec
-vendor_file_type
-crash_dump_exec
-crash_dump_exec
-netutils_wrapper_exec
-netutils_wrapper_exec
userdebug_or_eng(`-tcpdump_exec')
userdebug_or_eng(`-tcpdump_exec')
...
@@ -1156,17 +1157,33 @@ full_treble_only(`
...
@@ -1156,17 +1157,33 @@ full_treble_only(`
}:file *;
}:file *;
')
')
# TODO(b/111243627): Uncomment once all violations are cleaned up.
full_treble_only(`
#full_treble_only(`
# Do not allow vendor components access to /system files except for the
# # Do not allow vendor components access to /system files except for the
# ones whitelisted here.
# # ones whitelisted here.
neverallow {
# neverallow {
domain
# domain
-appdomain
# -appdomain
-coredomain
# -coredomain
-vendor_executes_system_violators
# -vendor_executes_system_violators
# vendor_init needs access to init_exec for domain transition. vendor_init
# } system_file_type:file *;
# neverallows are covered in public/vendor_init.te
#')
-vendor_init
} {
system_file_type
-system_file # TODO(b/111243627): remove once Treble violations are fixed.
-crash_dump_exec
-file_contexts_file
-netutils_wrapper_exec
-property_contexts_file
-system_lib_file
-system_linker_exec
-system_linker_config_file
-system_seccomp_policy_file
-system_security_cacerts_file
-system_zoneinfo_file
userdebug_or_eng(`-tcpdump_exec')
}:file *;
')
# Only authorized processes should be writing to files in /data/dalvik-cache
# Only authorized processes should be writing to files in /data/dalvik-cache
neverallow {
neverallow {
...
...
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