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
2e7fa9d8
Commit
2e7fa9d8
authored
8 years ago
by
Chad Brubaker
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Disallow access to proc_net for ephemeral_app"
parents
d3266558
c4a938e7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
private/app.te
+1
-1
1 addition, 1 deletion
private/app.te
private/ephemeral_app.te
+4
-0
4 additions, 0 deletions
private/ephemeral_app.te
with
5 additions
and
1 deletion
private/app.te
+
1
−
1
View file @
2e7fa9d8
...
@@ -133,7 +133,7 @@ userdebug_or_eng(`
...
@@ -133,7 +133,7 @@ userdebug_or_eng(`
# Write to /proc/net/xt_qtaguid/ctrl file.
# Write to /proc/net/xt_qtaguid/ctrl file.
allow appdomain qtaguid_proc:file rw_file_perms;
allow appdomain qtaguid_proc:file rw_file_perms;
# read /proc/net/xt_qtguid/stats
# read /proc/net/xt_qtguid/stats
r_dir_file(appdomain, proc_net)
r_dir_file(
{
appdomain
-ephemeral_app}
, proc_net)
# Everybody can read the xt_qtaguid resource tracking misc dev.
# Everybody can read the xt_qtaguid resource tracking misc dev.
# So allow all apps to read from /dev/xt_qtaguid.
# So allow all apps to read from /dev/xt_qtaguid.
allow appdomain qtaguid_device:chr_file r_file_perms;
allow appdomain qtaguid_device:chr_file r_file_perms;
...
...
This diff is collapsed.
Click to expand it.
private/ephemeral_app.te
+
4
−
0
View file @
2e7fa9d8
...
@@ -52,3 +52,7 @@ neverallow ephemeral_app proc:file { no_rw_file_perms no_x_file_perms };
...
@@ -52,3 +52,7 @@ neverallow ephemeral_app proc:file { no_rw_file_perms no_x_file_perms };
# Directly access external storage
# Directly access external storage
neverallow ephemeral_app { sdcard_type media_rw_data_file }:file {open create};
neverallow ephemeral_app { sdcard_type media_rw_data_file }:file {open create};
neverallow ephemeral_app { sdcard_type media_rw_data_file }:dir search;
neverallow ephemeral_app { sdcard_type media_rw_data_file }:dir search;
# Avoid reads to proc_net, it contains too much device wide information about
# ongoing connections.
neverallow ephemeral_app proc_net:file no_rw_file_perms;
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