Update device to use set_prop() macro

(cherrypicked from commit cccc901639)

Change-Id: I630ba0178439c935d08062892990d43a3cc1239e
Signed-off-by: William Roberts <william.c.roberts@linux.intel.com>
This commit is contained in:
William Roberts 2015-05-11 10:23:59 -07:00 committed by Nick Kralevich
parent 70b67accbf
commit c434f71bd8
2 changed files with 5 additions and 5 deletions

View File

@ -13,6 +13,5 @@ allow goldfish_setup self:capability { net_admin net_raw };
allow goldfish_setup self:udp_socket create_socket_perms;
# Set net.eth0.dns*, debug.sf.nobootanimation
unix_socket_connect(goldfish_setup, property, init)
allow goldfish_setup system_prop:property_service set;
allow goldfish_setup debug_prop:property_service set;
set_prop(goldfish_setup, system_prop)
set_prop(goldfish_setup, debug_prop)

View File

@ -5,5 +5,6 @@ type qemu_props_exec, exec_type, file_type;
init_daemon_domain(qemu_props)
# Set properties.
unix_socket_connect(qemu_props, property, init)
allow qemu_props { qemu_prop dalvik_prop config_prop }:property_service set;
set_prop(qemu_props, qemu_prop)
set_prop(qemu_props, dalvik_prop)
set_prop(qemu_props, config_prop)