Skip to contentSkip to conversation

Platform app domain sdcard accesses

PATCH In review Haiqing Jiang 2 participants 3 messages Jul 27, 2012 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Platform app domain sdcard accesses

---
 app.te |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
app.te +3 -0
index df0f5df..818f5c0 100644
@@ -86,6 +86,9 @@ net_domain(browser_app)
 # App sandbox file accesses.
 allow platformappdomain platform_app_data_file:dir create_dir_perms;
 allow platformappdomain platform_app_data_file:notdevfile_class_set create_file_perms;
+# App sdcard file accesses
+allow platformappdomain sdcard:dir create_dir_perms;
+allow platformappdomain sdcard:file create_file_perms;
 
 #
 # Untrusted apps.
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
---
 app.te |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
app.te +0 -0
index df0f5df..818f5c0 100644

app.te net_domain(browser_app) · line 94

Quoted 9 lines
app.te +3 -0
@@ -86,6 +86,9 @@ net_domain(browser_app)
 # App sandbox file accesses.
 allow platformappdomain platform_app_data_file:dir create_dir_perms;
 allow platformappdomain platform_app_data_file:notdevfile_class_set create_file_perms;
+# App sdcard file accesses
+allow platformappdomain sdcard:dir create_dir_perms;
+allow platformappdomain sdcard:file create_file_perms;
 
 #
 # Untrusted apps.

In that case, we should be able to delete the rules for platform_app and media_app to sdcard, right?

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

YES..... correct...

Quoted 29 lines · Stephen Smalley

app.te net_domain(browser_app) · line 88

Quoted 12 lines · Haiqing Jiang
---
 app.te |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
app.te +0 -0
index df0f5df..818f5c0 100644
@@ -86,6 +86,9 @@ net_domain(browser_app)
 # App sandbox file accesses.
 allow platformappdomain platform_app_data_file:dir create_dir_perms;
 allow platformappdomain platform_app_data_file:notdevfile_class_set

create_file_perms;

app.te net_domain(browser_app) · line 94

Quoted 6 lines
app.te +3 -0
+# App sdcard file accesses
+allow platformappdomain sdcard:dir create_dir_perms;
+allow platformappdomain sdcard:file create_file_perms;
 
 #
 # Untrusted apps.

In that case, we should be able to delete the rules for platform_app and media_app to sdcard, right?

--
Stephen Smalley
National Security Agency

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

Computer Science Department, North Carolina State University