summaryrefslogtreecommitdiffstats
path: root/init/builtins.c
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2013-01-23 09:24:33 -0800
committerColin Cross <ccross@android.com>2013-06-19 12:26:28 -0700
commit26f2d2f51941dda585009ae5cbd6f2ae1926ab2d (patch)
tree0beb2295f4eb8a641abb74df4911bd08af78d2a1 /init/builtins.c
parente755dfd43812ebd9a0d0d6a2106316f343ffb5a2 (diff)
downloadsystem_core-26f2d2f51941dda585009ae5cbd6f2ae1926ab2d.zip
system_core-26f2d2f51941dda585009ae5cbd6f2ae1926ab2d.tar.gz
system_core-26f2d2f51941dda585009ae5cbd6f2ae1926ab2d.tar.bz2
property_service: make /dev/__properties__ readable
Currently, system properties are passed via the environment variable ANDROID_PROPERTY_WORKSPACE and a file descriptor passed from parent to child. This is insecure for setuid executables, as the environment variable can be changed by the caller. Make the /dev/__properties__ file accessible, so an app can get properties directly from the file, rather than relying on environment variables. Preserve the environment variable for compatibility with pre-existing apps. Bug: 8045561 (cherry picked from commit 7ece0a862cf97e85bbe69458a32a2bd165456874) Change-Id: I762da21ef4075f288745efed0ec7d16c2b71303c
Diffstat (limited to 'init/builtins.c')
0 files changed, 0 insertions, 0 deletions