Skip to content
Snippets Groups Projects
Commit 95ee35f8 authored by Stephen Smalley's avatar Stephen Smalley Committed by Android Git Automerger
Browse files

am 54e9bc45: Dependencies for new goldfish service domains.

* commit '54e9bc45':
  Dependencies for new goldfish service domains.
parents 3dc54c93 54e9bc45
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,8 @@ type usbfs, fs_type; ...@@ -43,6 +43,8 @@ type usbfs, fs_type;
type unlabeled, file_type; type unlabeled, file_type;
# Default type for anything under /system. # Default type for anything under /system.
type system_file, file_type; type system_file, file_type;
# Type for /system/bin/logcat.
type logcat_exec, exec_type, file_type;
# Default type for anything under /data. # Default type for anything under /data.
type system_data_file, file_type, data_file_type; type system_data_file, file_type, data_file_type;
# /data/.layout_version or other installd-created files that # /data/.layout_version or other installd-created files that
......
...@@ -123,6 +123,7 @@ ...@@ -123,6 +123,7 @@
# System files # System files
# #
/system(/.*)? u:object_r:system_file:s0 /system(/.*)? u:object_r:system_file:s0
/system/bin/logcat -- u:object_r:logcat_exec:s0
/system/bin/sh -- u:object_r:shell_exec:s0 /system/bin/sh -- u:object_r:shell_exec:s0
/system/bin/run-as -- u:object_r:runas_exec:s0 /system/bin/run-as -- u:object_r:runas_exec:s0
/system/bin/bootanimation u:object_r:bootanim_exec:s0 /system/bin/bootanimation u:object_r:bootanim_exec:s0
......
...@@ -23,3 +23,5 @@ type bluetooth_prop, property_type; ...@@ -23,3 +23,5 @@ type bluetooth_prop, property_type;
type pan_result_prop, property_type; type pan_result_prop, property_type;
type powerctl_prop, property_type; type powerctl_prop, property_type;
type nfc_prop, property_type; type nfc_prop, property_type;
type dalvik_prop, property_type;
type config_prop, property_type;
...@@ -61,3 +61,9 @@ ctl. u:object_r:ctl_default_prop:s0 ...@@ -61,3 +61,9 @@ ctl. u:object_r:ctl_default_prop:s0
# NFC properties # NFC properties
nfc. u:object_r:nfc_prop:s0 nfc. u:object_r:nfc_prop:s0
# These properties are not normally set by processes other than init.
# They are only distinguished here for setting by qemu-props on the
# emulator/goldfish.
config. u:object_r:config_prop:s0
dalvik. u:object_r:dalvik_prop:s0
...@@ -332,9 +332,10 @@ unix_socket_send($1, logdw, logd) ...@@ -332,9 +332,10 @@ unix_socket_send($1, logdw, logd)
##################################### #####################################
# read_logd(domain) # read_logd(domain)
# Ability to read from android # Ability to run logcat and read from android
# log daemon via sockets # log daemon via sockets
define(`read_logd', ` define(`read_logd', `
allow $1 logcat_exec:file rx_file_perms;
unix_socket_connect($1, logdr, logd) unix_socket_connect($1, logdr, logd)
') ')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment