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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
de789145
Commit
de789145
authored
7 years ago
by
Joel Galenson
Committed by
android-build-merger
7 years ago
Browse files
Options
Downloads
Plain Diff
Disallow most domains from getting dac_override and dac_read_search. am:
60575233
am:
fe98ecb7
am:
97c671c0
Change-Id: I3e6c45d733f114dc37ae85127d285227a7ab69dd
parents
3c7a3b78
97c671c0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/domain.te
+26
-0
26 additions, 0 deletions
public/domain.te
with
26 additions
and
0 deletions
public/domain.te
+
26
−
0
View file @
de789145
...
...
@@ -1224,3 +1224,29 @@ full_treble_only(`
-perfprofd
} vendor_file:file { create_file_perms x_file_perms };
')
# Minimize dac_override and dac_read_search.
# Instead of granting them it is usually better to add the domain to
# a Unix group or change the permissions of a file.
neverallow {
domain
-dnsmasq
-dumpstate
-init
-installd
-install_recovery
-lmkd
-netd
-perfprofd
-postinstall_dexopt
-recovery
-sdcardd
-tee
-ueventd
-uncrypt
-vendor_init
-vold
-vold_prepare_subdirs
-zygote
} self:capability dac_override;
neverallow domain self:capability dac_read_search;
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