diff --git a/contexts/plat_file_contexts_test b/contexts/plat_file_contexts_test index e003d65b1..95584252c 100644 --- a/contexts/plat_file_contexts_test +++ b/contexts/plat_file_contexts_test @@ -1271,3 +1271,5 @@ /product/bin/otapreopt postinstall_dexopt_exec /data/misc/uprobestats-configs uprobestats_configs_data_file /data/misc/uprobestats-configs/test uprobestats_configs_data_file + +/tmp shell_data_file diff --git a/private/file_contexts b/private/file_contexts index 1fdeb14d9..a1bc85f5a 100644 --- a/private/file_contexts +++ b/private/file_contexts @@ -54,6 +54,7 @@ /sys u:object_r:sysfs:s0 /apex u:object_r:apex_mnt_dir:s0 /bootstrap-apex u:object_r:apex_mnt_dir:s0 +/tmp u:object_r:shell_data_file:s0 # Postinstall directories /postinstall u:object_r:postinstall_mnt_dir:s0 diff --git a/public/init.te b/public/init.te index 29dd42d43..47b8603b5 100644 --- a/public/init.te +++ b/public/init.te @@ -105,6 +105,7 @@ allow init { vendor_file postinstall_mnt_dir mirror_data_file + shell_data_file }:dir mounton; # Mount bpf fs on sys/fs/bpf