external/sepolicy: allow media_app read to application data files
PATCH 5/6 external/sepolicy: allow media_app read to application data files
--- app.te | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
app.te +2 -0
@@ -45,6 +45,8 @@ allow media_app sdcard:file { create_file_perms link_file_perms }; # Read/[write] to /proc/net/xt_qtaguid/ctrl and /dev/xt_qtaguid allow media_app qtaguid_proc:file rw_file_perms; allow media_app qtaguid_device:chr_file r_file_perms; +# Read to app_data_file +allow media_app app_data_file:file r_file_perms; # Apps signed with the shared key. type shared_app, domain; app_domain(shared_app)
Signature · 7 lines
1.7.0.4 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 9 lines · Haiqing Jiang
--- app.te | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)app.te +0
-0
app.te allow media_app sdcard:file { create_file_perms link_file_perms }; · line 52
Quoted 8 lines
app.te +2
-0@@ -45,6 +45,8 @@ allow media_app sdcard:file { create_file_perms link_file_perms }; # Read/[write] to /proc/net/xt_qtaguid/ctrl and /dev/xt_qtaguid allow media_app qtaguid_proc:file rw_file_perms; allow media_app qtaguid_device:chr_file r_file_perms; +# Read to app_data_file +allow media_app app_data_file:file r_file_perms; # Apps signed with the shared key. type shared_app, domain; app_domain(shared_app)
Already allowed by this rule in app.te:
allow appdomain app_data_file:notdevfile_class_set create_file_perms;
Maybe your denial was due to MLS categories rather than TE.
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.