No description
Find a file
Tom Cherry 0d1452ee1b init: add SelabelInitialize() for subcontext
Children of init that use any of the SELinux wrapper functions,
including make_dir(), mkdir_recursive(), and plenty others, need to
first initialize the sehandle with SelabelInitialize().

I wish there were a better solution, but early init doesn't actually
want this handle initialized, so that is a valid use case.  Ueventd
needs to initialize this before fork()'ing, so lazy initialization is
not universally acceptable either.  Likely we won't have other
children that fork() then exec() init again, so this should be okay.

Bug: 62875318

Test: init unit tests
Test: sailfish creates directories with correct SELabel after wipe
Change-Id: I6de937604a060e18945427418f15b90e0b9d5c37
2017-10-19 16:25:45 -07:00
adb Set $HOSTNAME in adbd. 2017-10-03 08:44:27 -07:00
adf libadfhwc: Fix adf_hwc_close 2017-03-02 17:40:16 +00:00
base Use target.linux for all linux kernel based targets 2017-10-16 20:55:39 -07:00
bootstat Merge "bootstat: Add more boot reasons found by logging in the wild." 2017-10-19 19:41:34 +00:00
cpio Possible null pointer miss on realloc 2017-03-23 22:41:14 +01:00
debuggerd Merge "Move some properties users to __system_property_read_callback()" 2017-10-12 16:53:41 +00:00
demangle Add support for boolean literals. 2017-10-11 15:23:45 -07:00
fastboot fastboot: bail out if failed to generate fs image 2017-08-23 13:43:15 -07:00
fs_mgr fs_mgr: removing is_device_secure() 2017-10-13 06:34:12 +08:00
gatekeeperd gatekeeperd: use std::unique_ptr 2017-09-15 01:12:43 +00:00
healthd <stdbool.h> not necessary in C++. 2017-10-17 16:21:33 +00:00
include Move android_filesystem_config.h => fs_config.h 2017-08-02 16:31:19 -07:00
init init: add SelabelInitialize() for subcontext 2017-10-19 16:25:45 -07:00
libappfuse libappfuse: use an explicit buffer size 2017-08-02 14:11:25 -07:00
libasyncio adb: Use kernel aio for functionfs. 2017-08-10 15:12:47 -07:00
libbacktrace Fix demangle of function names. 2017-10-18 19:20:12 -07:00
libbinderwrapper libbinderwrapper: Android.mk -> Android.bp 2017-04-25 15:55:26 -07:00
libcrypto_utils Mark the modules as VNDK in Android.bp 2017-09-14 08:35:16 +00:00
libcutils Merge "<stdbool.h> not necessary in C++." 2017-10-17 19:26:53 +00:00
libdiskconfig Rename target.linux[_x86[_64]] to target.linux_glibc[_x86[_64]] 2017-10-02 10:44:29 -07:00
libgrallocusage Mark libgrallocusage as vendor_available 2017-09-05 14:49:53 -07:00
libion Merge "libion: Adapt to new ION interface" 2017-09-21 01:06:32 +00:00
libkeyutils Add libkeyutils. 2017-05-10 10:40:11 -07:00
liblog Make liblog headers compile stand-alone. 2017-10-03 14:06:33 -07:00
libmemtrack Mark libmemtrack as VNDK in Android.bp 2017-09-14 02:46:36 +00:00
libmemunreachable Silence static analyzer warnings about memory leaks 2017-09-24 13:36:29 -07:00
libmetricslogger libmetricslogger: Fix the out-of-sync proto IDs for boot reason. 2017-10-06 14:30:08 -07:00
libnativebridge Remove default libraries 2017-09-29 13:17:06 -07:00
libnativeloader Remove default libraries 2017-09-29 13:17:06 -07:00
libnetutils Mark the modules as VNDK in Android.bp 2017-09-14 08:35:16 +00:00
libpackagelistparser Remove LOCAL_CLANG and clang: true 2017-07-25 14:29:50 +02:00
libpixelflinger Va_end should be used with va_start 2017-03-23 22:41:42 +01:00
libprocessgroup Add memcg related configs to init. 2017-07-18 15:58:40 -07:00
libprocinfo Mark the modules as VNDK in Android.bp 2017-09-14 08:35:16 +00:00
libsparse Merge "<stdbool.h> not necessary in C++." 2017-10-17 19:26:53 +00:00
libsuspend Mark the modules as VNDK in Android.bp 2017-09-14 08:35:16 +00:00
libsync Merge "libsync: Add fence info tests" 2017-09-26 23:46:32 +00:00
libsystem Add NATIVE_WINDOW_CONSUMER_IS_PROTECTED enum 2017-05-01 16:41:26 -07:00
libsysutils Stop depending on libnl. 2017-10-05 14:56:44 +09:00
libunwindstack Fix setting of map_offset in frame data. 2017-10-17 18:42:03 -07:00
libusbhost Mark the modules as VNDK in Android.bp 2017-09-14 08:35:16 +00:00
libutils Use target.linux for all linux kernel based targets 2017-10-16 20:55:39 -07:00
libvndksupport Merge "libvndksupport: Do not lookup default namespace for sphal failure" into oc-dev 2017-05-31 07:01:41 +00:00
libziparchive Rename libz-host -> libz 2017-09-27 16:24:45 -07:00
lmkd lmkd: Android.mk -> Android.bp 2017-04-28 15:20:18 -07:00
logcat <stdbool.h> not necessary in C++. 2017-10-17 16:21:33 +00:00
logd CtsLogdTestCases#sepolicy_rate_limiter failure 2017-10-02 10:38:35 -07:00
logwrapper Merge "logwrapper: add a benchmark for android_fork_execvp_ext" 2017-03-23 11:56:10 +00:00
mkbootimg mkbootimg: use int for os_version and os_patch_level 2016-03-29 16:06:37 -07:00
reboot reboot: only pause indefinitely for non-shutdown operations 2017-09-29 16:29:52 +00:00
rootdir console: Add setenv HOSTNAME console 2017-10-11 11:20:02 -07:00
run-as run-as: Keep supplementary groups. 2017-09-29 15:34:23 -04:00
sdcard Revert "Add derive_gid flag for mounting sdcardfs" 2017-09-22 09:03:18 -07:00
shell_and_utilities Update shell and utilities docs for O. 2017-09-13 20:59:25 -07:00
storaged storaged: stop binder threads before exiting 2017-04-04 19:44:01 +00:00
toolbox Merge "Add building and installing of grep for vendor." 2017-06-16 23:24:32 +00:00
trusty Merge "<stdbool.h> not necessary in C++." 2017-10-17 19:26:53 +00:00
.clang-format Add a 2 width option of clang format. 2017-03-10 13:01:39 -08:00
.clang-format-2 Only allow short functions in class definitions. 2017-03-28 12:31:37 -07:00
.clang-format-4 Only allow short functions in class definitions. 2017-03-28 12:31:37 -07:00
.gitignore
Android.bp Export android_filesystem_config.h as a filegroup 2017-01-17 18:20:28 -08:00
Android.mk
CleanSpec.mk Removing $(PRODUCT_OUT)/root/root 2017-09-28 18:10:58 +08:00
MODULE_LICENSE_APACHE2
NOTICE
platform_tools_tool_version.mk Fix warning on the build servers 2017-05-25 12:35:40 -07:00
PREUPLOAD.cfg Add a PREUPLOAD.cfg file to run git-clang-format on every commit 2017-03-08 16:51:26 +08:00