Merge "Update device to use set_prop() macro"

This commit is contained in:
Nick Kralevich 2015-05-15 19:26:56 +00:00 committed by Gerrit Code Review
commit e89b6f5df1
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)