Skip to contentSkip to conversation

read permission over lnk_file to devices when android_cts enabled

PATCH New Haiqing Jiang 1 participant 2 messages Jul 30, 2012 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 read permission over lnk_file to devices when android_cts enabled

---
 cts.te |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
cts.te +3 -0
index 489be1a..3371410 100644
@@ -31,6 +31,9 @@ allow appdomain system_file:file rx_file_perms;
 allow appdomain apk_tmp_file:file rw_file_perms;
 allow appdomain shell_data_file:file r_file_perms;
 
+# Read permission over link file to devices.
+allow appdomain dev_type:lnk_file read;
+
 # Read routing information.
 allow netdomain self:netlink_route_socket { create read write nlmsg_read };
 
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

PATCH 2/2 untrusted_app reads logs when android_cts enabled

---
 app.te |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
app.te +4 -0
index b9b5a17..8b1aa53 100644
@@ -120,6 +120,10 @@ bool app_ndk false;
 if (app_ndk or android_cts) {
 allow untrusted_app system_data_file:file { execute open };
 }
+# Read Logs
+if (android_cts) {
+allow untrusted_app log_device:chr_file read;
+}
 
 #
 # Rules for all app domains.
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.