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
c94e2392
Commit
c94e2392
authored
13 years ago
by
Stephen Smalley
Browse files
Options
Downloads
Patches
Plain Diff
Further policy for Motorola Xoom.
parent
2dd4e51d
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
app.te
+3
-0
3 additions, 0 deletions
app.te
device.te
+1
-0
1 addition, 0 deletions
device.te
file_contexts
+1
-0
1 addition, 0 deletions
file_contexts
netd.te
+2
-2
2 additions, 2 deletions
netd.te
system.te
+1
-0
1 addition, 0 deletions
system.te
with
8 additions
and
2 deletions
app.te
+
3
−
0
View file @
c94e2392
...
@@ -14,6 +14,9 @@ net_domain(trusted_app)
...
@@ -14,6 +14,9 @@ net_domain(trusted_app)
bluetooth_domain(trusted_app)
bluetooth_domain(trusted_app)
# Read logs.
# Read logs.
allow trusted_app log_device:chr_file read;
allow trusted_app log_device:chr_file read;
# Access /dev/mtp_usb.
# XXX Split android.process.media into a separate domain?
allow trusted_app mtp_device:chr_file rw_file_perms;
# Write to /cache.
# Write to /cache.
allow trusted_app cache_file:dir rw_dir_perms;
allow trusted_app cache_file:dir rw_dir_perms;
allow trusted_app cache_file:file create_file_perms;
allow trusted_app cache_file:file create_file_perms;
...
...
This diff is collapsed.
Click to expand it.
device.te
+
1
−
0
View file @
c94e2392
...
@@ -21,6 +21,7 @@ type input_device, dev_type;
...
@@ -21,6 +21,7 @@ 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 mtd_device, dev_type;
type mtd_device, dev_type;
type mtp_device, dev_type, mlstrustedobject;
type nfc_device, dev_type;
type nfc_device, dev_type;
type nv_device, dev_type, mlstrustedobject;
type nv_device, dev_type, mlstrustedobject;
type powervr_device, dev_type, mlstrustedobject;
type powervr_device, dev_type, mlstrustedobject;
...
...
This diff is collapsed.
Click to expand it.
file_contexts
+
1
−
0
View file @
c94e2392
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
/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
/dev/mtp_usb u:object_r:mtp_device:s0
/dev/pn544 u:object_r:nfc_device:s0
/dev/pn544 u:object_r:nfc_device:s0
/dev/ptmx u:object_r:ptmx_device:s0
/dev/ptmx u:object_r:ptmx_device:s0
/dev/pvrsrvkm u:object_r:powervr_device:s0
/dev/pvrsrvkm u:object_r:powervr_device:s0
...
...
This diff is collapsed.
Click to expand it.
netd.te
+
2
−
2
View file @
c94e2392
...
@@ -21,10 +21,10 @@ allow netd devpts:chr_file rw_file_perms;
...
@@ -21,10 +21,10 @@ allow netd devpts:chr_file rw_file_perms;
# XXX Split /proc/sys/net into its own type.
# XXX Split /proc/sys/net into its own type.
allow netd proc:file write;
allow netd proc:file write;
# For firmware_path
# For
/sys/modules/bcmdhd/parameters/
firmware_path
# XXX Split into its own type.
# XXX Split into its own type.
allow netd sysfs:file write;
allow netd sysfs:file write;
#
Load n
etwork driver
s
.
#
N
etwork driver
loading
.
allow netd kernel:system module_request;
allow netd kernel:system module_request;
This diff is collapsed.
Click to expand it.
system.te
+
1
−
0
View file @
c94e2392
...
@@ -100,6 +100,7 @@ selinux_check_access(system)
...
@@ -100,6 +100,7 @@ selinux_check_access(system)
allow system sysfs:file rw_file_perms;
allow system sysfs:file rw_file_perms;
# Access devices.
# Access devices.
allow system device:dir r_dir_perms;
allow system device:chr_file rw_file_perms;
allow system device:chr_file rw_file_perms;
allow system akm_device:chr_file rw_file_perms;
allow system akm_device:chr_file rw_file_perms;
allow system accelerometer_device:chr_file rw_file_perms;
allow system accelerometer_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