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
a92d3135
Commit
a92d3135
authored
7 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "recovery: clean up audit logspam"
parents
a6f6295c
9bbe420b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/domain_deprecated.te
+10
-0
10 additions, 0 deletions
public/domain_deprecated.te
public/recovery.te
+2
-0
2 additions, 0 deletions
public/recovery.te
with
12 additions
and
0 deletions
public/domain_deprecated.te
+
10
−
0
View file @
a92d3135
...
...
@@ -7,6 +7,7 @@ auditallow {
domain_deprecated
-appdomain
-installd
-recovery
-sdcardd
-surfaceflinger
-system_server
...
...
@@ -25,6 +26,7 @@ auditallow {
-fsck
-healthd
-installd
-recovery
-servicemanager
-system_server
-ueventd
...
...
@@ -36,6 +38,7 @@ auditallow {
domain_deprecated
-healthd
-installd
-recovery
-servicemanager
-system_server
-ueventd
...
...
@@ -48,6 +51,7 @@ auditallow {
-appdomain
-healthd
-installd
-recovery
-servicemanager
-system_server
-ueventd
...
...
@@ -138,17 +142,20 @@ allow domain_deprecated cache_file:lnk_file r_file_perms;
userdebug_or_eng(`
auditallow {
domain_deprecated
-recovery
-system_server
-vold
} cache_file:dir { open read search ioctl lock };
auditallow {
domain_deprecated
-appdomain
-recovery
-system_server
-vold
} cache_file:dir getattr;
auditallow {
domain_deprecated
-recovery
-system_server
-vold
} cache_file:file { getattr read };
...
...
@@ -190,6 +197,7 @@ auditallow {
-healthd
-netd
-rild
-recovery
-system_app
-surfaceflinger
-system_server
...
...
@@ -203,6 +211,7 @@ auditallow {
-healthd
-netd
-rild
-recovery
-system_app
-surfaceflinger
-system_server
...
...
@@ -216,6 +225,7 @@ auditallow {
-healthd
-netd
-rild
-recovery
-system_app
-surfaceflinger
-system_server
...
...
This diff is collapsed.
Click to expand it.
public/recovery.te
+
2
−
0
View file @
a92d3135
...
...
@@ -18,6 +18,7 @@ recovery_only(`
allow recovery self:capability2 mac_admin;
# Run helpers from / or /system without changing domain.
r_dir_file(recovery, rootfs)
allow recovery rootfs:file execute_no_trans;
allow recovery system_file:file execute_no_trans;
allow recovery toolbox_exec:file rx_file_perms;
...
...
@@ -51,6 +52,7 @@ recovery_only(`
# Write to /sys/class/android_usb/android0/enable.
# TODO: create more specific label?
r_dir_file(recovery, sysfs)
allow recovery sysfs:file w_file_perms;
# Write to /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq.
...
...
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