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
6567cc26
Commit
6567cc26
authored
6 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Further protect app private data files"
parents
a194d375
598a75c1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
private/domain.te
+1
-4
1 addition, 4 deletions
private/domain.te
public/init.te
+9
-3
9 additions, 3 deletions
public/init.te
with
10 additions
and
7 deletions
private/domain.te
+
1
−
4
View file @
6567cc26
...
@@ -48,7 +48,6 @@ neverallow {
...
@@ -48,7 +48,6 @@ neverallow {
-adbd
-adbd
-appdomain
-appdomain
-dexoptanalyzer
-dexoptanalyzer
-init
-installd
-installd
userdebug_or_eng(`-perfprofd')
userdebug_or_eng(`-perfprofd')
-profman
-profman
...
@@ -56,12 +55,11 @@ neverallow {
...
@@ -56,12 +55,11 @@ neverallow {
-system_server
-system_server
} { privapp_data_file app_data_file }:dir *;
} { privapp_data_file app_data_file }:dir *;
# Only apps should be modifying app data.
init and
installd
are
exempted for
# Only apps should be modifying app data. installd
is
exempted for
# restorecon and package install/uninstall.
# restorecon and package install/uninstall.
neverallow {
neverallow {
domain
domain
-appdomain
-appdomain
-init
-installd
-installd
} { privapp_data_file app_data_file }:dir ~r_dir_perms;
} { privapp_data_file app_data_file }:dir ~r_dir_perms;
...
@@ -80,7 +78,6 @@ neverallow {
...
@@ -80,7 +78,6 @@ neverallow {
neverallow {
neverallow {
domain
domain
-init
-installd
-installd
} { privapp_data_file app_data_file }:dir_file_class_set { relabelfrom relabelto };
} { privapp_data_file app_data_file }:dir_file_class_set { relabelfrom relabelto };
...
...
This diff is collapsed.
Click to expand it.
public/init.te
+
9
−
3
View file @
6567cc26
...
@@ -223,9 +223,15 @@ allow init {
...
@@ -223,9 +223,15 @@ allow init {
allow init cache_file:lnk_file r_file_perms;
allow init cache_file:lnk_file r_file_perms;
allow init { file_type -system_file_type -vendor_file_type -exec_type }:dir_file_class_set relabelto;
allow init {
# does init really need to relabel app data?
file_type
userdebug_or_eng(`auditallow init { app_data_file privapp_data_file }:dir_file_class_set relabelto;')
-system_file_type
-vendor_file_type
-exec_type
-app_data_file
-privapp_data_file
}:dir_file_class_set relabelto;
allow init { sysfs debugfs debugfs_tracing debugfs_tracing_debug }:{ dir file lnk_file } { getattr relabelfrom };
allow init { sysfs debugfs debugfs_tracing debugfs_tracing_debug }:{ dir file lnk_file } { getattr relabelfrom };
allow init { sysfs_type debugfs_type }:{ dir file lnk_file } { relabelto getattr };
allow init { sysfs_type debugfs_type }:{ dir file lnk_file } { relabelto getattr };
allow init dev_type:dir create_dir_perms;
allow init dev_type:dir create_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