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
3fc0df76
Commit
3fc0df76
authored
11 years ago
by
William Roberts
Committed by
Android Git Automerger
11 years ago
Browse files
Options
Downloads
Plain Diff
am
a637b2f2
: assert: Do not allow access to generic device:chr_file
* commit '
a637b2f2
': assert: Do not allow access to generic device:chr_file
parents
df80ebd9
a637b2f2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app.te
+0
-3
0 additions, 3 deletions
app.te
domain.te
+5
-0
5 additions, 0 deletions
domain.te
with
5 additions
and
3 deletions
app.te
+
0
−
3
View file @
3fc0df76
...
@@ -201,9 +201,6 @@ neverallow { appdomain -unconfineddomain } self:capability2 *;
...
@@ -201,9 +201,6 @@ neverallow { appdomain -unconfineddomain } self:capability2 *;
# Block device access.
# Block device access.
neverallow { appdomain -unconfineddomain } dev_type:blk_file { read write };
neverallow { appdomain -unconfineddomain } dev_type:blk_file { read write };
# Access to any character device that is not specifically typed.
neverallow { appdomain -unconfineddomain } device:chr_file { read write };
# Access to any of the following character devices.
# Access to any of the following character devices.
neverallow { appdomain -unconfineddomain } {
neverallow { appdomain -unconfineddomain } {
audio_device
audio_device
...
...
This diff is collapsed.
Click to expand it.
domain.te
+
5
−
0
View file @
3fc0df76
...
@@ -187,3 +187,8 @@ neverallow domain init:binder call;
...
@@ -187,3 +187,8 @@ neverallow domain init:binder call;
# Don't allow raw read/write/open access to block_device
# Don't allow raw read/write/open access to block_device
# Rather force a relabel to a more specific type
# Rather force a relabel to a more specific type
neverallow { domain -unconfineddomain -vold } block_device:blk_file { open read write };
neverallow { domain -unconfineddomain -vold } block_device:blk_file { open read write };
# Don't allow raw read/write/open access to generic devices.
# Rather force a relabel to a more specific type.
# ueventd is exempt from this, as its managing these devices.
neverallow { domain -unconfineddomain -ueventd } device:chr_file { open read write };
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