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
0abe8cdb
Commit
0abe8cdb
authored
9 years ago
by
Nick Kralevich
Committed by
android-build-merger
9 years ago
Browse files
Options
Downloads
Plain Diff
neverallow debugfs access
am:
96b1c9ca
* commit '
96b1c9ca
': neverallow debugfs access
parents
a490ec3a
96b1c9ca
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
domain.te
+6
-0
6 additions, 0 deletions
domain.te
untrusted_app.te
+1
-1
1 addition, 1 deletion
untrusted_app.te
with
7 additions
and
1 deletion
domain.te
+
6
−
0
View file @
0abe8cdb
...
@@ -508,3 +508,9 @@ neverallow domain ~property_type:property_service set;
...
@@ -508,3 +508,9 @@ neverallow domain ~property_type:property_service set;
# $ grep mydaemon file_contexts
# $ grep mydaemon file_contexts
# /system/bin/mydaemon -- u:object_r:mydaemon_exec:s0
# /system/bin/mydaemon -- u:object_r:mydaemon_exec:s0
neverallow domain domain:file { execute execute_no_trans entrypoint };
neverallow domain domain:file { execute execute_no_trans entrypoint };
# Do not allow access to the generic debugfs label. This is too broad.
# Instead, if access to part of debugfs is desired, it should have a
# more specific label.
# TODO: fix system_server and dumpstate
neverallow { domain -init -system_server -dumpstate } debugfs:file no_rw_file_perms;
This diff is collapsed.
Click to expand it.
untrusted_app.te
+
1
−
1
View file @
0abe8cdb
...
@@ -112,7 +112,7 @@ neverallow untrusted_app domain:netlink_socket *;
...
@@ -112,7 +112,7 @@ neverallow untrusted_app domain:netlink_socket *;
# Too much leaky information in debugfs. It's a security
# Too much leaky information in debugfs. It's a security
# best practice to ensure these files aren't readable.
# best practice to ensure these files aren't readable.
neverallow untrusted_app debugfs:file read;
neverallow untrusted_app debugfs
_type
:file read;
# Do not allow untrusted apps to register services.
# Do not allow untrusted apps to register services.
# Only trusted components of Android should be registering
# Only trusted components of Android should be registering
...
...
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