aboutsummaryrefslogtreecommitdiffstats
path: root/uncrypt.te
diff options
context:
space:
mode:
Diffstat (limited to 'uncrypt.te')
-rw-r--r--uncrypt.te8
1 files changed, 4 insertions, 4 deletions
diff --git a/uncrypt.te b/uncrypt.te
index 743236d..752124d 100644
--- a/uncrypt.te
+++ b/uncrypt.te
@@ -14,15 +14,15 @@ userdebug_or_eng(`
r_dir_file(uncrypt, shell_data_file)
')
-# Create tmp file /cache/recovery/command.tmp
# Read /cache/recovery/command
-# Rename /cache/recovery/command.tmp to /cache/recovery/command
+# Read /cache/recovery/uncrypt_file
+# Write to pipe file /cache/recovery/uncrypt_status
allow uncrypt cache_file:dir rw_dir_perms;
allow uncrypt cache_file:file create_file_perms;
+allow uncrypt cache_file:fifo_file w_file_perms;
# Set a property to reboot the device.
-unix_socket_connect(uncrypt, property, init)
-allow uncrypt powerctl_prop:property_service set;
+set_prop(uncrypt, powerctl_prop)
# Raw writes to block device
allow uncrypt self:capability sys_rawio;