Skip to contentSkip to conversation

external/sepolicy: mediaserver open application data files

PATCH In review Haiqing Jiang 2 participants 3 messages Jul 19, 2012 – Jul 23, 2012 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 2/6 external/sepolicy: mediaserver open application data files

---
 mediaserver.te |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
mediaserver.te +1 -0
index 057e39d..d3f0334 100644
@@ -25,6 +25,7 @@ allow mediaserver sysfs:file rw_file_perms;
 # XXX Why?
 allow mediaserver apk_data_file:file { read getattr };
 allow mediaserver ion_device:chr_file rw_file_perms;
+allow mediaserver app_data_file:file open;
 
 # To use remote processor
 allow mediaserver rpmsg_device:chr_file rw_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.
#1 lore raw
Quoted 9 lines · Haiqing Jiang
---
 mediaserver.te |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
mediaserver.te +0 -0
index 057e39d..d3f0334 100644

mediaserver.te allow mediaserver sysfs:file rw_file_perms; · line 31

Quoted 7 lines
mediaserver.te +1 -0
@@ -25,6 +25,7 @@ allow mediaserver sysfs:file rw_file_perms;
 # XXX Why?
 allow mediaserver apk_data_file:file { read getattr };
 allow mediaserver ion_device:chr_file rw_file_perms;
+allow mediaserver app_data_file:file open;
 
 # To use remote processor
 allow mediaserver rpmsg_device:chr_file rw_file_perms;

If this is required, then merge it into the existing allow rule for app_data_file, at which point you can just use r_file_perms;

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.
#2 lore raw

Thanks. I should be more careful to find the related existing policies.

Quoted 25 lines · Stephen Smalley
Quoted 9 lines · Haiqing Jiang
---
 mediaserver.te |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
mediaserver.te +0 -0
index 057e39d..d3f0334 100644

mediaserver.te allow mediaserver sysfs:file rw_file_perms; · line 31

Quoted 7 lines
mediaserver.te +1 -0
@@ -25,6 +25,7 @@ allow mediaserver sysfs:file rw_file_perms;
 # XXX Why?
 allow mediaserver apk_data_file:file { read getattr };
 allow mediaserver ion_device:chr_file rw_file_perms;
+allow mediaserver app_data_file:file open;
 
 # To use remote processor
 allow mediaserver rpmsg_device:chr_file rw_file_perms;

If this is required, then merge it into the existing allow rule for app_data_file, at which point you can just use r_file_perms; --
Stephen Smalley
National Security Agency

Signature · 4 lines
-----------------------------------
Haiqing Jiang, PH.D student

Computer Science Department, North Carolina State University