msm8937-common: sepolicy: Add debug rules for rmt_storage

Change-Id: Ie0c94ac657127b1653afbbb82b06789dfe34032d
This commit is contained in:
Bruno Martins 2017-12-24 00:54:36 +00:00 committed by Isaac Chen
parent a85558ea52
commit d761cec8e3
3 changed files with 8 additions and 0 deletions

View file

@ -2,3 +2,4 @@ type fpc_data_file, file_type, data_file_type;
type fpce_socket, file_type;
type fpc_sysfs, fs_type, sysfs_type;
type gx_fpd_data_file, file_type, data_file_type;
type debugfs_rmt, debugfs_type, fs_type;

1
sepolicy/vendor/genfs_contexts vendored Normal file
View file

@ -0,0 +1 @@
genfscon debugfs /rmt_storage u:object_r:debugfs_rmt:s0

View file

@ -1 +1,7 @@
allow rmt_storage self:capability net_raw;
# debugfs access
userdebug_or_eng(`
allow rmt_storage debugfs_rmt:dir search;
allow rmt_storage debugfs_rmt:file rw_file_perms;
')