Skip to content
Snippets Groups Projects
Commit 664743bd authored by Jeff Vander Stoep's avatar Jeff Vander Stoep Committed by android-build-merger
Browse files

domain_deprecated: remove cache access am: 790f4c7e

am: 3ca77476

Change-Id: Ie9ebd530b380bd61fd62bb3cab171f0f7e27156e
parents f9da0cba 3ca77476
No related branches found
No related tags found
No related merge requests found
...@@ -109,37 +109,6 @@ auditallow { ...@@ -109,37 +109,6 @@ auditallow {
} apk_data_file:lnk_file r_file_perms; } apk_data_file:lnk_file r_file_perms;
') ')
# Read already opened /cache files.
allow domain_deprecated cache_file:dir r_dir_perms;
allow domain_deprecated cache_file:file { getattr read };
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 };
auditallow {
domain_deprecated
-system_server
-vold
} cache_file:lnk_file r_file_perms;
')
# Read access to pseudo filesystems. # Read access to pseudo filesystems.
r_dir_file(domain_deprecated, proc) r_dir_file(domain_deprecated, proc)
r_dir_file(domain_deprecated, sysfs) r_dir_file(domain_deprecated, sysfs)
......
...@@ -14,6 +14,7 @@ userdebug_or_eng(` ...@@ -14,6 +14,7 @@ userdebug_or_eng(`
# Read /cache/recovery/command # Read /cache/recovery/command
# Read /cache/recovery/uncrypt_file # Read /cache/recovery/uncrypt_file
allow uncrypt cache_file:dir search;
allow uncrypt cache_recovery_file:dir rw_dir_perms; allow uncrypt cache_recovery_file:dir rw_dir_perms;
allow uncrypt cache_recovery_file:file create_file_perms; allow uncrypt cache_recovery_file:file create_file_perms;
......
...@@ -24,6 +24,8 @@ allow update_engine_common postinstall_file:file rx_file_perms; ...@@ -24,6 +24,8 @@ allow update_engine_common postinstall_file:file rx_file_perms;
allow update_engine_common postinstall_file:lnk_file r_file_perms; allow update_engine_common postinstall_file:lnk_file r_file_perms;
allow update_engine_common postinstall_file:dir r_dir_perms; allow update_engine_common postinstall_file:dir r_dir_perms;
# install update.zip from cache
r_dir_file(update_engine_common, cache_file)
# A postinstall program is typically a shell script (with a #!), so we allow # A postinstall program is typically a shell script (with a #!), so we allow
# to execute those. # to execute those.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment