Skip to contentSkip to conversation

PATCH Applied Haiqing Jiang 2 participants 3 messages Jul 23, 2012 – Jul 24, 2012 SELinux security module

lore
Share & tools
lore
#0 lore raw

[PATCH] external/sepolicy: mediaserver open application data files
According to Stephen's comments, I add the open permission over app_data_file to mediaserver.

--
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

PATCH 1/1 external/sepolicy: mediaserver open application data files

---
 mediaserver.te |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
mediaserver.te +1 -1
index 057e39d..39618a5 100644
@@ -11,7 +11,7 @@ binder_call(mediaserver, binderservicedomain)
 binder_call(mediaserver, appdomain)
 binder_service(mediaserver)
 allow mediaserver app_data_file:dir search;
-allow mediaserver app_data_file:file { read getattr };
+allow mediaserver app_data_file:file r_file_perms;
 r_dir_file(mediaserver, sdcard)
 allow mediaserver sdcard:file write;
 allow mediaserver camera_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.
#2 lore raw

Re: [PATCH] external/sepolicy: mediaserver open application data files

Quoted 3 lines · Haiqing Jiang
---
 mediaserver.te |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Thanks, applied.

Quoted 14 lines
mediaserver.te +1 -1
index 057e39d..39618a5 100644
@@ -11,7 +11,7 @@ binder_call(mediaserver, binderservicedomain)
 binder_call(mediaserver, appdomain)
 binder_service(mediaserver)
 allow mediaserver app_data_file:dir search;
-allow mediaserver app_data_file:file { read getattr };
+allow mediaserver app_data_file:file r_file_perms;
 r_dir_file(mediaserver, sdcard)
 allow mediaserver sdcard:file write;
 allow mediaserver camera_device:chr_file rw_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.