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
4da3bb14
Commit
4da3bb14
authored
10 years ago
by
Nick Kralevich
Committed by
Gerrit Code Review
10 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Rename sdcard_internal/external types."
parents
2b3c5de2
374b2a19
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
app.te
+2
-2
2 additions, 2 deletions
app.te
file.te
+4
-2
4 additions, 2 deletions
file.te
genfs_contexts
+2
-2
2 additions, 2 deletions
genfs_contexts
kernel.te
+1
-1
1 addition, 1 deletion
kernel.te
recovery.te
+3
-6
3 additions, 6 deletions
recovery.te
with
12 additions
and
13 deletions
app.te
+
2
−
2
View file @
4da3bb14
...
...
@@ -116,8 +116,8 @@ allow appdomain radio_data_file:file { read write getattr };
allow untrusted_app system_app_data_file:file { read write getattr };
# Access SDcard via the fuse mount.
allow appdomain
sdcard_internal
:dir create_dir_perms;
allow appdomain
sdcard_internal
:file create_file_perms;
allow appdomain
fuse
:dir create_dir_perms;
allow appdomain
fuse
:file create_file_perms;
# Allow apps to use the USB Accessory interface.
# http://developer.android.com/guide/topics/connectivity/usb/accessory.html
...
...
This diff is collapsed.
Click to expand it.
file.te
+
4
−
2
View file @
4da3bb14
...
...
@@ -28,8 +28,10 @@ type devpts, fs_type, mlstrustedobject;
type tmpfs, fs_type;
type shm, fs_type;
type mqueue, fs_type;
type sdcard_internal, sdcard_type, fs_type, mlstrustedobject;
type sdcard_external, sdcard_type, fs_type, mlstrustedobject;
type fuse, sdcard_type, fs_type, mlstrustedobject;
type vfat, sdcard_type, fs_type, mlstrustedobject;
typealias fuse alias sdcard_internal;
typealias vfat alias sdcard_external;
type debugfs, fs_type, mlstrustedobject;
type pstorefs, fs_type;
type functionfs, fs_type;
...
...
This diff is collapsed.
Click to expand it.
genfs_contexts
+
2
−
2
View file @
4da3bb14
...
...
@@ -25,9 +25,9 @@ genfscon cgroup / u:object_r:cgroup:s0
# sysfs labels can be set by userspace.
genfscon sysfs / u:object_r:sysfs:s0
genfscon inotifyfs / u:object_r:inotify:s0
genfscon vfat / u:object_r:
sdcard_external
:s0
genfscon vfat / u:object_r:
vfat
:s0
genfscon debugfs / u:object_r:debugfs:s0
genfscon fuse / u:object_r:
sdcard_internal
:s0
genfscon fuse / u:object_r:
fuse
:s0
genfscon pstore / u:object_r:pstorefs:s0
genfscon functionfs / u:object_r:functionfs:s0
genfscon usbfs / u:object_r:usbfs:s0
This diff is collapsed.
Click to expand it.
kernel.te
+
1
−
1
View file @
4da3bb14
...
...
@@ -35,7 +35,7 @@ dontaudit kernel self:security setenforce;
allow kernel self:security setcheckreqprot;
# MTP sync
allow kernel
sdcard_internal
:file { read write };
allow kernel
fuse
:file { read write };
###
### neverallow rules
...
...
This diff is collapsed.
Click to expand it.
recovery.te
+
3
−
6
View file @
4da3bb14
...
...
@@ -87,13 +87,10 @@ recovery_only(`
# Use setfscreatecon() to label files for OTA updates.
allow recovery self:process setfscreate;
# Allow recovery to create a fuse filesystem, and read files from
# it. (Note that all files on fuse filesystems are labeled
# "sdcard_internal"; the simulated SD card is the only other user of
# fuse.)
# Allow recovery to create a fuse filesystem, and read files from it.
allow recovery fuse_device:chr_file rw_file_perms;
allow recovery
sdcard_internal
:dir r_dir_perms;
allow recovery
sdcard_internal
:file r_file_perms;
allow recovery
fuse
:dir r_dir_perms;
allow recovery
fuse
:file r_file_perms;
wakelock_use(recovery)
...
...
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