msm8937-common: sepolicy: Add debug rules for rmt_storage
Change-Id: Ie0c94ac657127b1653afbbb82b06789dfe34032d
This commit is contained in:
parent
a85558ea52
commit
d761cec8e3
3 changed files with 8 additions and 0 deletions
1
sepolicy/vendor/file.te
vendored
1
sepolicy/vendor/file.te
vendored
|
@ -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
1
sepolicy/vendor/genfs_contexts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
genfscon debugfs /rmt_storage u:object_r:debugfs_rmt:s0
|
6
sepolicy/vendor/rmt_storage.te
vendored
6
sepolicy/vendor/rmt_storage.te
vendored
|
@ -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;
|
||||
')
|
||||
|
|
Loading…
Reference in a new issue