bionic/linker
Nick Kralevich 8d3e91d4f8 linker: only re-open std* for setuid programs.
get_AT_SECURE() was getting called before linker_env_init() had
been called, and returning the default value ("true"). This was
causing us to reopen closed stdin, stdout, and stderr for ALL
processes, not just privileged (setuid) processes.

Calling path:
  - __linker_init
    - soinfo_link_image
      - get_AT_SECURE
    - __linker_init_post_relocation
      - linker_env_init

This change restores the intended behavior of only re-opening
stdin, stdout, and stderr for privileged processes.

Change-Id: I8b085ea6597710ac4c1a3c93f1bf8b81eecb08c0
2013-04-25 13:15:24 -07:00
..
arch Drop unnecessary execution permission for .cpp/.c/.h 2013-03-22 10:28:15 +08:00
Android.mk Everyone has a TLS register. 2013-02-12 21:56:42 -08:00
debugger.cpp Make abort messages available to debuggerd. 2013-04-05 11:24:19 -07:00
dlfcn.cpp Use more types than just 'unsigned' in the linker. 2013-03-12 11:26:56 -07:00
linker_debug.h Clean up internal libc logging. 2013-03-15 16:12:58 -07:00
linker_environ.cpp Clean up the argc/argv/envp/auxv handling. 2013-02-07 11:44:21 -08:00
linker_environ.h Clean up the argc/argv/envp/auxv handling. 2013-02-07 11:44:21 -08:00
linker_phdr.cpp More linker cleanup. 2013-03-05 22:24:34 -08:00
linker_phdr.h More linker cleanup. 2013-03-05 22:24:34 -08:00
linker.cpp linker: only re-open std* for setuid programs. 2013-04-25 13:15:24 -07:00
linker.h Make abort messages available to debuggerd. 2013-04-05 11:24:19 -07:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
NOTICE Regenerate all NOTICE files with the latest version of the script. 2012-08-15 15:43:13 -07:00
rt.cpp More dynamic linker cleanup. 2012-10-30 16:35:38 -07:00