Skip to content
Snippets Groups Projects
Commit 4b6e673a authored by Jin Qian's avatar Jin Qian
Browse files

storaged: allow storaged to access /data/misc/storaged directory

storaged will use this directory to store internal data files.

Bug: 63740245
Change-Id: Ie77961c2b398cc464b7199d3acbcc6287312d3b4
parent 8cf281ab
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment