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
dc194683
Commit
dc194683
authored
11 years ago
by
repo sync
Committed by
Android (Google) Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "DO NOT MERGE Split some device nodes out from device." into jb-mr2-dev
parents
02599329
69fbbdd5
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
device.te
+5
-0
5 additions, 0 deletions
device.te
file_contexts
+5
-0
5 additions, 0 deletions
file_contexts
surfaceflinger.te
+6
-0
6 additions, 0 deletions
surfaceflinger.te
system.te
+1
-0
1 addition, 0 deletions
system.te
with
17 additions
and
0 deletions
device.te
+
5
−
0
View file @
dc194683
...
@@ -10,6 +10,9 @@ type binder_device, dev_type, mlstrustedobject;
...
@@ -10,6 +10,9 @@ type binder_device, dev_type, mlstrustedobject;
type block_device, dev_type;
type block_device, dev_type;
type camera_device, dev_type;
type camera_device, dev_type;
type dm_device, dev_type;
type dm_device, dev_type;
# XXX may be specific for mako
type dss_device, dev_type;
type knvmap_device, dev_type;
type loop_device, dev_type;
type loop_device, dev_type;
type radio_device, dev_type;
type radio_device, dev_type;
type ram_device, dev_type;
type ram_device, dev_type;
...
@@ -20,6 +23,7 @@ type graphics_device, dev_type;
...
@@ -20,6 +23,7 @@ type graphics_device, dev_type;
type input_device, dev_type;
type input_device, dev_type;
type kmem_device, dev_type;
type kmem_device, dev_type;
type log_device, dev_type, mlstrustedobject;
type log_device, dev_type, mlstrustedobject;
type msm_rotator_device, dev_type;
type mtd_device, dev_type;
type mtd_device, dev_type;
type mtp_device, dev_type, mlstrustedobject;
type mtp_device, dev_type, mlstrustedobject;
type nfc_device, dev_type;
type nfc_device, dev_type;
...
@@ -27,6 +31,7 @@ type nv_device, dev_type, mlstrustedobject;
...
@@ -27,6 +31,7 @@ type nv_device, dev_type, mlstrustedobject;
type powervr_device, dev_type, mlstrustedobject;
type powervr_device, dev_type, mlstrustedobject;
type ptmx_device, dev_type, mlstrustedobject;
type ptmx_device, dev_type, mlstrustedobject;
type qemu_device, dev_type;
type qemu_device, dev_type;
type sysfs_devices_system_cpu, dev_type;
type kmsg_device, dev_type;
type kmsg_device, dev_type;
type null_device, dev_type, mlstrustedobject;
type null_device, dev_type, mlstrustedobject;
type random_device, dev_type;
type random_device, dev_type;
...
...
This diff is collapsed.
Click to expand it.
file_contexts
+
5
−
0
View file @
dc194683
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
/dev/console u:object_r:console_device:s0
/dev/console u:object_r:console_device:s0
/dev/cpuctl(/.*)? u:object_r:cpuctl_device:s0
/dev/cpuctl(/.*)? u:object_r:cpuctl_device:s0
/dev/device-mapper u:object_r:dm_device:s0
/dev/device-mapper u:object_r:dm_device:s0
/dev/dsscomp u:object_r:dss_device:s0
/dev/eac u:object_r:audio_device:s0
/dev/eac u:object_r:audio_device:s0
/dev/full u:object_r:full_device:s0
/dev/full u:object_r:full_device:s0
/dev/fuse u:object_r:fuse_device:s0
/dev/fuse u:object_r:fuse_device:s0
...
@@ -53,12 +54,16 @@
...
@@ -53,12 +54,16 @@
/dev/input(/.*) u:object_r:input_device:s0
/dev/input(/.*) u:object_r:input_device:s0
/dev/iio:device[0-9]+ u:object_r:iio_device:s0
/dev/iio:device[0-9]+ u:object_r:iio_device:s0
/dev/ion u:object_r:ion_device:s0
/dev/ion u:object_r:ion_device:s0
/dev/kgsl-3d0 u:object_r:graphics_device:s0
/dev/kmem u:object_r:kmem_device:s0
/dev/kmem u:object_r:kmem_device:s0
/dev/knvmap u:object_r:knvmap_device:s0
/dev/log(/.*)? u:object_r:log_device:s0
/dev/log(/.*)? u:object_r:log_device:s0
/dev/mem u:object_r:kmem_device:s0
/dev/mem u:object_r:kmem_device:s0
/dev/modem.* u:object_r:radio_device:s0
/dev/modem.* u:object_r:radio_device:s0
/dev/mpu u:object_r:gps_device:s0
/dev/mpu u:object_r:gps_device:s0
/dev/mpuirq u:object_r:gps_device:s0
/dev/mpuirq u:object_r:gps_device:s0
# XXX move to device-specific
/dev/msm_rotator u:object_r:msm_rotator_device:s0
/dev/mtd(/.*)? u:object_r:mtd_device:s0
/dev/mtd(/.*)? u:object_r:mtd_device:s0
/dev/mtd/mtd5 u:object_r:radio_device:s0
/dev/mtd/mtd5 u:object_r:radio_device:s0
/dev/mtd/mtd5ro u:object_r:radio_device:s0
/dev/mtd/mtd5ro u:object_r:radio_device:s0
...
...
This diff is collapsed.
Click to expand it.
surfaceflinger.te
+
6
−
0
View file @
dc194683
...
@@ -32,3 +32,9 @@ allow surfaceflinger ctl_default_prop:property_service set;
...
@@ -32,3 +32,9 @@ allow surfaceflinger ctl_default_prop:property_service set;
allow surfaceflinger appdomain:fd use;
allow surfaceflinger appdomain:fd use;
allow surfaceflinger platform_app_data_file:file { read write };
allow surfaceflinger platform_app_data_file:file { read write };
allow surfaceflinger app_data_file:file { read write };
allow surfaceflinger app_data_file:file { read write };
# Allow access to special-purpose devices
# XXX may be device-specific
allow surfaceflinger dss_device:chr_file { read write };
allow surfaceflinger knvmap_device:chr_file { ioctl };
allow surfaceflinger msm_rotator_device:chr_file { open };
\ No newline at end of file
This diff is collapsed.
Click to expand it.
system.te
+
1
−
0
View file @
dc194683
...
@@ -122,6 +122,7 @@ selinux_check_access(system)
...
@@ -122,6 +122,7 @@ selinux_check_access(system)
# XXX Label sysfs files with a specific type?
# XXX Label sysfs files with a specific type?
allow system sysfs:file rw_file_perms;
allow system sysfs:file rw_file_perms;
allow system sysfs_devices_system_cpu:dir search;
allow system sysfs_nfc_power_writable:file rw_file_perms;
allow system sysfs_nfc_power_writable:file rw_file_perms;
# Access devices.
# Access devices.
...
...
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