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
c15e1036
Commit
c15e1036
authored
9 years ago
by
Jeffrey Vander Stoep
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "camera_device: remove type and add typealias"
parents
87a73f19
b7aace2d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
app.te
+1
-1
1 addition, 1 deletion
app.te
device.te
+3
-1
3 additions, 1 deletion
device.te
file_contexts
+1
-1
1 addition, 1 deletion
file_contexts
mediaserver.te
+0
-2
0 additions, 2 deletions
mediaserver.te
with
5 additions
and
5 deletions
app.te
+
1
−
1
View file @
c15e1036
...
...
@@ -243,7 +243,7 @@ neverallow appdomain dev_type:blk_file { read write };
# Access to any of the following character devices.
neverallow appdomain {
audio_device
camera
_device
video
_device
dm_device
radio_device
gps_device
...
...
This diff is collapsed.
Click to expand it.
device.te
+
3
−
1
View file @
c15e1036
...
...
@@ -6,7 +6,6 @@ type ashmem_device, dev_type, mlstrustedobject;
type audio_device, dev_type;
type binder_device, dev_type, mlstrustedobject;
type block_device, dev_type;
type camera_device, dev_type;
type dm_device, dev_type;
type loop_device, dev_type;
type pmsg_device, dev_type, mlstrustedobject;
...
...
@@ -101,3 +100,6 @@ type misc_block_device, dev_type;
# Bootctrl block device used by A/B update (update_engine, update_verifier).
type bootctrl_block_device, dev_type;
# XXX: Temporarily alias camera_device for its removal
typealias video_device alias camera_device;
This diff is collapsed.
Click to expand it.
file_contexts
+
1
−
1
View file @
c15e1036
...
...
@@ -60,7 +60,7 @@
/dev/block/ram[0-9]* u:object_r:ram_device:s0
/dev/block/zram[0-9]* u:object_r:ram_device:s0
/dev/bus/usb(.*)? u:object_r:usb_device:s0
/dev/cam u:object_r:
camera
_device:s0
/dev/cam u:object_r:
video
_device:s0
/dev/console u:object_r:console_device:s0
/dev/cpuctl(/.*)? u:object_r:cpuctl_device:s0
/dev/device-mapper u:object_r:dm_device:s0
...
...
This diff is collapsed.
Click to expand it.
mediaserver.te
+
0
−
2
View file @
c15e1036
...
...
@@ -47,8 +47,6 @@ allow mediaserver radio_data_file:file { read getattr };
# Use pipes passed over Binder from app domains.
allow mediaserver appdomain:fifo_file { getattr read write };
# Access camera device.
allow mediaserver camera_device:chr_file rw_file_perms;
allow mediaserver rpmsg_device:chr_file rw_file_perms;
# Inter System processes communicate over named pipe (FIFO)
...
...
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