external/sepolicy: allow media_app more permissions on sdcard
PATCH 1/6 external/sepolicy: allow media_app more permissions on sdcard
--- app.te | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
app.te +1 -1
@@ -41,7 +41,7 @@ allow media_app cache_file:dir rw_dir_perms; allow media_app cache_file:file create_file_perms; # Access sdcard. allow media_app sdcard:dir create_dir_perms; -allow media_app sdcard:file create_file_perms; +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;
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, 1 insertions(+), 1 deletions(-)app.te +0
-0
app.te allow media_app cache_file:dir rw_dir_perms; · line 47
Quoted 8 lines
app.te +1
-1@@ -41,7 +41,7 @@ allow media_app cache_file:dir rw_dir_perms; allow media_app cache_file:file create_file_perms; # Access sdcard. allow media_app sdcard:dir create_dir_perms; -allow media_app sdcard:file create_file_perms; +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;
create_file_perms already contains link_file_perms, so this does nothing.
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.
I made a mistake. Sorry for that.
Quoted 27 lines · Stephen Smalley
Quoted 9 lines · Haiqing Jiang
--- app.te | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)app.te +0
-0app.te allow media_app cache_file:dir rw_dir_perms; · line 47
Quoted 8 lines
app.te +1
-1@@ -41,7 +41,7 @@ allow media_app cache_file:dir rw_dir_perms; allow media_app cache_file:file create_file_perms; # Access sdcard. allow media_app sdcard:dir create_dir_perms; -allow media_app sdcard:file create_file_perms; +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;
create_file_permsalready containslink_file_perms, so this does nothing.--
Stephen Smalley
National Security Agency
Signature · 4 lines
----------------------------------- Haiqing Jiang, PH.D student Computer Science Department, North Carolina State University