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
ca69bb23
Commit
ca69bb23
authored
7 years ago
by
Yifan Hong
Committed by
Android (Google) Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Update selinux policy for policyvers retrieval."
parents
77d7c5d1
5b3494eb
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
private/app.te
+0
-1
0 additions, 1 deletion
private/app.te
private/app_neverallows.te
+3
-0
3 additions, 0 deletions
private/app_neverallows.te
private/priv_app.te
+3
-0
3 additions, 0 deletions
private/priv_app.te
public/recovery.te
+3
-0
3 additions, 0 deletions
public/recovery.te
with
9 additions
and
1 deletion
private/app.te
+
0
−
1
View file @
ca69bb23
...
@@ -478,7 +478,6 @@ neverallow appdomain
...
@@ -478,7 +478,6 @@ neverallow appdomain
neverallow appdomain kernel:system { syslog_read syslog_mod syslog_console };
neverallow appdomain kernel:system { syslog_read syslog_mod syslog_console };
# SELinux is not an API for apps to use
# SELinux is not an API for apps to use
neverallow { appdomain -shell } selinuxfs:file no_rw_file_perms;
neverallow { appdomain -shell } *:security { compute_av check_context };
neverallow { appdomain -shell } *:security { compute_av check_context };
neverallow { appdomain -shell } *:netlink_selinux_socket *;
neverallow { appdomain -shell } *:netlink_selinux_socket *;
...
...
This diff is collapsed.
Click to expand it.
private/app_neverallows.te
+
3
−
0
View file @
ca69bb23
...
@@ -166,6 +166,9 @@ neverallow all_untrusted_apps {
...
@@ -166,6 +166,9 @@ neverallow all_untrusted_apps {
-hidl_token_hwservice # Designed for use by any domain
-hidl_token_hwservice # Designed for use by any domain
}:hwservice_manager find;
}:hwservice_manager find;
# SELinux is not an API for untrusted apps to use
neverallow all_untrusted_apps selinuxfs:file no_rw_file_perms;
# Restrict *Binder access from apps to HAL domains. We can only do this on full
# Restrict *Binder access from apps to HAL domains. We can only do this on full
# Treble devices where *Binder communications between apps and HALs are tightly
# Treble devices where *Binder communications between apps and HALs are tightly
# restricted.
# restricted.
...
...
This diff is collapsed.
Click to expand it.
private/priv_app.te
+
3
−
0
View file @
ca69bb23
...
@@ -108,6 +108,9 @@ allow priv_app preloads_media_file:dir r_dir_perms;
...
@@ -108,6 +108,9 @@ allow priv_app preloads_media_file:dir r_dir_perms;
# Allow privileged apps (e.g. GMS core) to generate unique hardware IDs
# Allow privileged apps (e.g. GMS core) to generate unique hardware IDs
allow priv_app keystore:keystore_key gen_unique_id;
allow priv_app keystore:keystore_key gen_unique_id;
# Allow GMS core to access /sys/fs/selinux/policyvers for compatibility check
allow priv_app selinuxfs:file r_file_perms;
read_runtime_log_tags(priv_app)
read_runtime_log_tags(priv_app)
###
###
...
...
This diff is collapsed.
Click to expand it.
public/recovery.te
+
3
−
0
View file @
ca69bb23
...
@@ -75,6 +75,9 @@ recovery_only(`
...
@@ -75,6 +75,9 @@ recovery_only(`
allow recovery functionfs:dir search;
allow recovery functionfs:dir search;
allow recovery functionfs:file rw_file_perms;
allow recovery functionfs:file rw_file_perms;
# Access to /sys/fs/selinux/policyvers for compatibility check
allow recovery selinuxfs:file r_file_perms;
# Required to e.g. wipe userdata/cache.
# Required to e.g. wipe userdata/cache.
allow recovery device:dir r_dir_perms;
allow recovery device:dir r_dir_perms;
allow recovery block_device:dir r_dir_perms;
allow recovery block_device: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