diff options
author | Joel Galenson <jgalenson@google.com> | 2017-11-27 14:45:26 -0800 |
---|---|---|
committer | Joel Galenson <jgalenson@google.com> | 2017-11-29 15:29:49 -0800 |
commit | 4b591f1851d1708dc6416a09d78437ac1d7b416e (patch) | |
tree | 058fe687371e5d76ee0b6f51a8f4d0e88106ae5c /libcutils/socket_local_client_unix.cpp | |
parent | fa65396ca278a0ecc21b14b9fb7603f219004ba2 (diff) |
Run restorecon after init creates a symlink or writes to a file.
Init currently sets the SELinux context on a mkdir but not on
other operations. This patch modifies it to do so when creating
symlinks, writing to a file, or copying a file.
Test: Built, flashed, and booted. Added fake init entries and
verified that they received the proper SELinux context.
Change-Id: I836b570fef81d74f3b6c8e7ce0274e94ca7b12d3
Diffstat (limited to 'libcutils/socket_local_client_unix.cpp')
0 files changed, 0 insertions, 0 deletions