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
e3965aa2
Commit
e3965aa2
authored
9 years ago
by
Daichi Hirono
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Add SELinux label for app fuse."
parents
abf31acb
e178ac5a
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
+3
-0
3 additions, 0 deletions
app.te
file.te
+4
-0
4 additions, 0 deletions
file.te
mediaserver.te
+3
-0
3 additions, 0 deletions
mediaserver.te
priv_app.te
+2
-0
2 additions, 0 deletions
priv_app.te
vold.te
+3
-0
3 additions, 0 deletions
vold.te
with
15 additions
and
0 deletions
app.te
+
3
−
0
View file @
e3965aa2
...
@@ -209,6 +209,9 @@ allow appdomain console_device:chr_file { read write };
...
@@ -209,6 +209,9 @@ allow appdomain console_device:chr_file { read write };
allow { appdomain -isolated_app } ion_device:chr_file rw_file_perms;
allow { appdomain -isolated_app } ion_device:chr_file rw_file_perms;
# For app fuse.
allow appdomain app_fuse_file:file { getattr read append write };
###
###
### CTS-specific rules
### CTS-specific rules
###
###
...
...
This diff is collapsed.
Click to expand it.
file.te
+
4
−
0
View file @
e3965aa2
...
@@ -50,6 +50,7 @@ type functionfs, fs_type;
...
@@ -50,6 +50,7 @@ type functionfs, fs_type;
type oemfs, fs_type, contextmount_type;
type oemfs, fs_type, contextmount_type;
type usbfs, fs_type;
type usbfs, fs_type;
type binfmt_miscfs, fs_type;
type binfmt_miscfs, fs_type;
type app_fusefs, fs_type, contextmount_type;
# File types
# File types
type unlabeled, file_type;
type unlabeled, file_type;
...
@@ -169,6 +170,8 @@ type security_file, file_type;
...
@@ -169,6 +170,8 @@ type security_file, file_type;
type bluetooth_efs_file, file_type;
type bluetooth_efs_file, file_type;
# Type for fingerprint template file.
# Type for fingerprint template file.
type fingerprintd_data_file, file_type, data_file_type;
type fingerprintd_data_file, file_type, data_file_type;
# Type for appfuse file.
type app_fuse_file, file_type, data_file_type;
# Socket types
# Socket types
type adbd_socket, file_type;
type adbd_socket, file_type;
...
@@ -211,6 +214,7 @@ allow file_type labeledfs:filesystem associate;
...
@@ -211,6 +214,7 @@ allow file_type labeledfs:filesystem associate;
allow file_type tmpfs:filesystem associate;
allow file_type tmpfs:filesystem associate;
allow file_type rootfs:filesystem associate;
allow file_type rootfs:filesystem associate;
allow dev_type tmpfs:filesystem associate;
allow dev_type tmpfs:filesystem associate;
allow app_fuse_file app_fusefs:filesystem associate;
# It's a bug to assign the file_type attribute and fs_type attribute
# It's a bug to assign the file_type attribute and fs_type attribute
# to any type. Do not allow it.
# to any type. Do not allow it.
...
...
This diff is collapsed.
Click to expand it.
mediaserver.te
+
3
−
0
View file @
e3965aa2
...
@@ -66,6 +66,9 @@ r_dir_file(mediaserver, media_rw_data_file)
...
@@ -66,6 +66,9 @@ r_dir_file(mediaserver, media_rw_data_file)
allow mediaserver audio_data_file:dir ra_dir_perms;
allow mediaserver audio_data_file:dir ra_dir_perms;
allow mediaserver audio_data_file:file create_file_perms;
allow mediaserver audio_data_file:file create_file_perms;
# Grant access to read files on appfuse.
allow mediaserver app_fuse_file:file { read getattr };
# Read/[write] to /proc/net/xt_qtaguid/ctrl and /dev/xt_qtaguid
# Read/[write] to /proc/net/xt_qtaguid/ctrl and /dev/xt_qtaguid
allow mediaserver qtaguid_proc:file rw_file_perms;
allow mediaserver qtaguid_proc:file rw_file_perms;
allow mediaserver qtaguid_device:chr_file r_file_perms;
allow mediaserver qtaguid_device:chr_file r_file_perms;
...
...
This diff is collapsed.
Click to expand it.
priv_app.te
+
2
−
0
View file @
e3965aa2
...
@@ -67,6 +67,8 @@ allow priv_app exec_type:file getattr;
...
@@ -67,6 +67,8 @@ allow priv_app exec_type:file getattr;
# For AppFuse.
# For AppFuse.
allow priv_app vold:fd use;
allow priv_app vold:fd use;
allow priv_app fuse_device:chr_file { read write };
allow priv_app fuse_device:chr_file { read write };
allow priv_app app_fuse_file:dir rw_dir_perms;
allow priv_app app_fuse_file:file rw_file_perms;
# /sys access
# /sys access
allow priv_app sysfs_zram:dir search;
allow priv_app sysfs_zram:dir search;
...
...
This diff is collapsed.
Click to expand it.
vold.te
+
3
−
0
View file @
e3965aa2
...
@@ -174,6 +174,9 @@ allow vold storage_file:dir mounton;
...
@@ -174,6 +174,9 @@ allow vold storage_file:dir mounton;
# For AppFuse.
# For AppFuse.
allow vold fuse_device:chr_file rw_file_perms;
allow vold fuse_device:chr_file rw_file_perms;
allow vold fuse:filesystem { relabelfrom };
allow vold app_fusefs:filesystem { relabelfrom relabelto };
allow vold app_fusefs:filesystem { mount unmount };
# coldboot of /sys/block
# coldboot of /sys/block
allow vold sysfs_zram:dir r_dir_perms;
allow vold sysfs_zram:dir r_dir_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