diff options
author | William Roberts <william.c.roberts@linux.intel.com> | 2015-05-11 10:23:59 -0700 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2015-05-18 19:20:03 -0700 |
commit | c434f71bd887fe4ea3d0f987d26410b7a61c83a2 (patch) | |
tree | 21982e6953f70b41567251e45b6ccc1829e77232 /target | |
parent | 70b67accbfb80c9d238c7b2121f3ba6d1691e2b0 (diff) | |
download | build-c434f71bd887fe4ea3d0f987d26410b7a61c83a2.zip build-c434f71bd887fe4ea3d0f987d26410b7a61c83a2.tar.gz build-c434f71bd887fe4ea3d0f987d26410b7a61c83a2.tar.bz2 |
Update device to use set_prop() macro
(cherrypicked from commit cccc90163946c0273a165a1ea50f2a87756610c7)
Change-Id: I630ba0178439c935d08062892990d43a3cc1239e
Signed-off-by: William Roberts <william.c.roberts@linux.intel.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/board/generic/sepolicy/goldfish_setup.te | 5 | ||||
-rw-r--r-- | target/board/generic/sepolicy/qemu_props.te | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/target/board/generic/sepolicy/goldfish_setup.te b/target/board/generic/sepolicy/goldfish_setup.te index 584731e..c4fe9d6 100644 --- a/target/board/generic/sepolicy/goldfish_setup.te +++ b/target/board/generic/sepolicy/goldfish_setup.te @@ -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) diff --git a/target/board/generic/sepolicy/qemu_props.te b/target/board/generic/sepolicy/qemu_props.te index 05c7461..4a91c4c 100644 --- a/target/board/generic/sepolicy/qemu_props.te +++ b/target/board/generic/sepolicy/qemu_props.te @@ -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) |