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
ee5f4005
Commit
ee5f4005
authored
12 years ago
by
hqjiang
Committed by
Stephen Smalley
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Correct denies of rpmsg device when accessing to remote processors.
parent
81039ab5
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
device.te
+4
-0
4 additions, 0 deletions
device.te
file_contexts
+2
-0
2 additions, 0 deletions
file_contexts
mediaserver.te
+3
-0
3 additions, 0 deletions
mediaserver.te
with
9 additions
and
0 deletions
device.te
+
4
−
0
View file @
ee5f4005
...
...
@@ -46,3 +46,7 @@ type gps_device, dev_type;
# varies per device. This type
# is used in per device policy
type hci_attach_dev, dev_type;
# All devices have a rpmsg device for
# achieving remoteproc and rpmsg modules
type rpmsg_device, dev_type;
This diff is collapsed.
Click to expand it.
file_contexts
+
2
−
0
View file @
ee5f4005
...
...
@@ -47,6 +47,8 @@
/dev/nvmap u:object_r:nv_device:s0
/dev/nvhost-.* u:object_r:nv_device:s0
/dev/random u:object_r:random_device:s0
/dev/rpmsg-omx[0-9] u:object_r:rpmsg_device:s0
/dev/rproc_user u:object_r:rpmsg_device:s0
/dev/s3c-jpg u:object_r:camera_device:s0
/dev/s3c-mem u:object_r:camera_device:s0
/dev/s3c-mfc u:object_r:graphics_device:s0
...
...
This diff is collapsed.
Click to expand it.
mediaserver.te
+
3
−
0
View file @
ee5f4005
...
...
@@ -25,3 +25,6 @@ allow mediaserver sysfs:file rw_file_perms;
# XXX Why?
allow mediaserver apk_data_file:file { read getattr };
allow mediaserver ion_device:chr_file rw_file_perms;
# To use remote processor
allow mediaserver rpmsg_device:chr_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