summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2017-10-19 14:39:35 -0700
committerTom Cherry <tomcherry@google.com>2017-10-19 16:25:45 -0700
commit0d1452ee1b2fb137e175064f4b84b1db8dde6487 (patch)
tree7621561a53f9610a324cf71f4d896c3c32103e23 /libutils/Unicode.cpp
parentb3959bb47e689ce91c7d4e63f161c6a46a9de671 (diff)
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
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions