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
df545265
Commit
df545265
authored
9 years ago
by
Nick Kralevich
Committed by
Android (Google) Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "sdcardd: ensure that init never executes sdcard daemon" into mnc-dev
parents
46452b84
50897feb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sdcardd.te
+8
-2
8 additions, 2 deletions
sdcardd.te
with
8 additions
and
2 deletions
sdcardd.te
+
8
−
2
View file @
df545265
type sdcardd, domain;
type sdcardd, domain;
type sdcardd_exec, exec_type, file_type;
type sdcardd_exec, exec_type, file_type;
init_daemon_domain(sdcardd) # TODO: deprecated in M
allow sdcardd cgroup:dir create_dir_perms;
allow sdcardd cgroup:dir create_dir_perms;
allow sdcardd fuse_device:chr_file rw_file_perms;
allow sdcardd fuse_device:chr_file rw_file_perms;
allow sdcardd rootfs:dir mounton; # TODO: deprecated in M
allow sdcardd rootfs:dir mounton; # TODO: deprecated in M
...
@@ -31,3 +29,11 @@ allow sdcardd vold:fifo_file { read write getattr };
...
@@ -31,3 +29,11 @@ allow sdcardd vold:fifo_file { read write getattr };
# Allow running on top of expanded storage
# Allow running on top of expanded storage
allow sdcardd mnt_expand_file:dir search;
allow sdcardd mnt_expand_file:dir search;
###
### neverallow rules
###
# The sdcard daemon should no longer be started from init
neverallow init sdcardd_exec:file execute;
neverallow init sdcardd:process { transition dyntransition };
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