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
66273452
Commit
66273452
authored
9 years ago
by
Jeffrey Vander Stoep
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Do not allow apps to access network address file"
parents
e244f2d3
2dabf174
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
file.te
+1
-0
1 addition, 0 deletions
file.te
system_server.te
+3
-0
3 additions, 0 deletions
system_server.te
untrusted_app.te
+3
-0
3 additions, 0 deletions
untrusted_app.te
with
7 additions
and
0 deletions
file.te
+
1
−
0
View file @
66273452
...
@@ -21,6 +21,7 @@ type sysfs_writable, fs_type, sysfs_type, mlstrustedobject;
...
@@ -21,6 +21,7 @@ type sysfs_writable, fs_type, sysfs_type, mlstrustedobject;
type sysfs_bluetooth_writable, fs_type, sysfs_type, mlstrustedobject;
type sysfs_bluetooth_writable, fs_type, sysfs_type, mlstrustedobject;
type sysfs_nfc_power_writable, fs_type, sysfs_type, mlstrustedobject;
type sysfs_nfc_power_writable, fs_type, sysfs_type, mlstrustedobject;
type sysfs_wake_lock, fs_type, sysfs_type;
type sysfs_wake_lock, fs_type, sysfs_type;
type sysfs_mac_address, fs_type, sysfs_type;
# /sys/devices/system/cpu
# /sys/devices/system/cpu
type sysfs_devices_system_cpu, fs_type, sysfs_type;
type sysfs_devices_system_cpu, fs_type, sysfs_type;
# /sys/module/lowmemorykiller
# /sys/module/lowmemorykiller
...
...
This diff is collapsed.
Click to expand it.
system_server.te
+
3
−
0
View file @
66273452
...
@@ -417,6 +417,9 @@ allow system_server sdcard_type:dir { getattr search };
...
@@ -417,6 +417,9 @@ allow system_server sdcard_type:dir { getattr search };
# Traverse into expanded storage
# Traverse into expanded storage
allow system_server mnt_expand_file:dir r_dir_perms;
allow system_server mnt_expand_file:dir r_dir_perms;
# Allow system process to read network MAC address
allow system_server sysfs_mac_address:file r_file_perms;
###
###
### Neverallow rules
### Neverallow rules
###
###
...
...
This diff is collapsed.
Click to expand it.
untrusted_app.te
+
3
−
0
View file @
66273452
...
@@ -142,3 +142,6 @@ neverallow untrusted_app mlstrustedsubject:process fork;
...
@@ -142,3 +142,6 @@ neverallow untrusted_app mlstrustedsubject:process fork;
# bugs, so we want to ensure untrusted_app never has this
# bugs, so we want to ensure untrusted_app never has this
# capability.
# capability.
neverallow untrusted_app file_type:file link;
neverallow untrusted_app file_type:file link;
# Do not allow untrusted_app to access network MAC address file
neverallow untrusted_app sysfs_mac_address: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