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
81039ab5
Commit
81039ab5
authored
12 years ago
by
hqjiang
Committed by
Stephen Smalley
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Corrected denials for LocationManager when accessing gps over uart.
parent
60e4f114
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
device.te
+1
-0
1 addition, 0 deletions
device.te
file.te
+3
-0
3 additions, 0 deletions
file.te
ocontexts
+3
-0
3 additions, 0 deletions
ocontexts
rild.te
+3
-0
3 additions, 0 deletions
rild.te
system.te
+5
-0
5 additions, 0 deletions
system.te
with
15 additions
and
0 deletions
device.te
+
1
−
0
View file @
81039ab5
...
...
@@ -39,6 +39,7 @@ type vcs_device, dev_type;
type zero_device, dev_type;
type fuse_device, dev_type;
type ion_device, dev_type;
type gps_device, dev_type;
# All devices have a uart for the hci
# attach service. The uart dev node
...
...
This diff is collapsed.
Click to expand it.
file.te
+
3
−
0
View file @
81039ab5
...
...
@@ -79,6 +79,9 @@ type vold_socket, file_type;
type wpa_socket, file_type;
type zygote_socket, file_type;
# UART (for GPS) control proc file
type gps_control, file_type;
# Allow files to be created in their appropriate filesystems.
allow fs_type self:filesystem associate;
allow sysfs_type sysfs:filesystem associate;
...
...
This diff is collapsed.
Click to expand it.
ocontexts
+
3
−
0
View file @
81039ab5
...
...
@@ -52,6 +52,9 @@ genfscon rootfs / u:object_r:rootfs:s0
# proc labeling can be further refined (longest matching prefix).
genfscon proc / u:object_r:proc:s0
genfscon proc /net/xt_qtaguid/ctrl u:object_r:qtaguid:s0
# These proc entries are for the CSR GPS chip
# XXX Can we label these as device specific?
genfscon proc /mcspi1_cs3_ctrl u:object_r:gps_control:s0
# selinuxfs booleans can be individually labeled.
genfscon selinuxfs / u:object_r:selinuxfs:s0
genfscon cgroup / u:object_r:cgroup:s0
...
...
This diff is collapsed.
Click to expand it.
rild.te
+
3
−
0
View file @
81039ab5
...
...
@@ -34,3 +34,6 @@ allow rild sysfs:file rw_file_perms;
# property service
allow rild rild_prop:property_service set;
allow rild radio_prop:property_service set;
# Read/Write to uart driver (for GPS)
allow rild gps_device:chr_file rw_file_perms;
This diff is collapsed.
Click to expand it.
system.te
+
5
−
0
View file @
81039ab5
...
...
@@ -187,3 +187,8 @@ allow system system_file:file x_file_perms;
# XXX dontaudit candidate
allow system domain:dir r_dir_perms;
allow system domain:file r_file_perms;
# LocationManager(e.g, GPS) needs to read and write
# to uart driver and ctrl proc entry
allow system gps_device:chr_file rw_file_perms;
allow system gps_control:file 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