Merge "storaged: allow storaged to access /data/misc/storaged directory"
This commit is contained in:
commit
6f11fa2edd
4 changed files with 9 additions and 0 deletions
|
@ -14,6 +14,7 @@
|
|||
mediaprovider_tmpfs
|
||||
netd_stable_secret_prop
|
||||
package_native_service
|
||||
storaged_data_file
|
||||
sysfs_fs_ext4_features
|
||||
system_net_netd_hwservice
|
||||
thermal_service
|
||||
|
|
|
@ -5,3 +5,6 @@ typealias app_data_file alias download_file;
|
|||
|
||||
# /proc/config.gz
|
||||
type config_gz, fs_type;
|
||||
|
||||
# /data/misc/storaged
|
||||
type storaged_data_file, file_type, data_file_type, core_data_file_type;
|
||||
|
|
|
@ -376,6 +376,7 @@
|
|||
/data/misc/recovery(/.*)? u:object_r:recovery_data_file:s0
|
||||
/data/misc/shared_relro(/.*)? u:object_r:shared_relro_file:s0
|
||||
/data/misc/sms(/.*)? u:object_r:radio_data_file:s0
|
||||
/data/misc/storaged(/.*)? u:object_r:storaged_data_file:s0
|
||||
/data/misc/systemkeys(/.*)? u:object_r:systemkeys_data_file:s0
|
||||
/data/misc/textclassifier(/.*)? u:object_r:textclassifier_data_file:s0
|
||||
/data/misc/user(/.*)? u:object_r:misc_user_data_file:s0
|
||||
|
|
|
@ -15,6 +15,10 @@ allow storaged proc_uid_io_stats:file r_file_perms;
|
|||
# Read /data/system/packages.list
|
||||
allow storaged system_data_file:file r_file_perms;
|
||||
|
||||
# Store storaged proto file
|
||||
allow storaged storaged_data_file:dir rw_dir_perms;
|
||||
allow storaged storaged_data_file:file create_file_perms;
|
||||
|
||||
userdebug_or_eng(`
|
||||
# Read access to debugfs
|
||||
allow storaged debugfs_mmc:dir search;
|
||||
|
|
Loading…
Reference in a new issue