Skip to content

Commit 259cb0a

Browse files
author
android-build-team Robot
committed
Snap for 6680110 from 6f5797a to rvc-qpr1-release
Change-Id: I113529076189614dd3265ee04a977dac40e7fc9b
2 parents 11787c5 + 6f5797a commit 259cb0a

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

prebuilts/api/30.0/public/uncrypt.te

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ allow uncrypt cache_file:dir search;
1515
allow uncrypt cache_recovery_file:dir rw_dir_perms;
1616
allow uncrypt cache_recovery_file:file create_file_perms;
1717

18-
# Read OTA zip file at /data/ota_package/.
18+
# Read and write(for f2fs_pin_file) on OTA zip file at /data/ota_package/.
1919
allow uncrypt ota_package_file:dir r_dir_perms;
20-
allow uncrypt ota_package_file:file r_file_perms;
20+
allow uncrypt ota_package_file:file rw_file_perms;
2121

2222
# Write to /dev/socket/uncrypt
2323
unix_socket_connect(uncrypt, uncrypt, uncrypt)
@@ -40,3 +40,7 @@ allow uncrypt proc_cmdline:file r_file_perms;
4040

4141
# Read files in /sys
4242
r_dir_file(uncrypt, sysfs_dt_firmware_android)
43+
44+
# Suppress the denials coming from ReadDefaultFstab call.
45+
dontaudit uncrypt gsi_metadata_file:dir search;
46+
dontaudit uncrypt metadata_file:dir search;

public/uncrypt.te

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ allow uncrypt cache_file:dir search;
1515
allow uncrypt cache_recovery_file:dir rw_dir_perms;
1616
allow uncrypt cache_recovery_file:file create_file_perms;
1717

18-
# Read OTA zip file at /data/ota_package/.
18+
# Read and write(for f2fs_pin_file) on OTA zip file at /data/ota_package/.
1919
allow uncrypt ota_package_file:dir r_dir_perms;
20-
allow uncrypt ota_package_file:file r_file_perms;
20+
allow uncrypt ota_package_file:file rw_file_perms;
2121

2222
# Write to /dev/socket/uncrypt
2323
unix_socket_connect(uncrypt, uncrypt, uncrypt)
@@ -40,3 +40,7 @@ allow uncrypt proc_cmdline:file r_file_perms;
4040

4141
# Read files in /sys
4242
r_dir_file(uncrypt, sysfs_dt_firmware_android)
43+
44+
# Suppress the denials coming from ReadDefaultFstab call.
45+
dontaudit uncrypt gsi_metadata_file:dir search;
46+
dontaudit uncrypt metadata_file:dir search;

0 commit comments

Comments
 (0)