commit | 4b591f1851d1708dc6416a09d78437ac1d7b416e | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Mon Nov 27 14:45:26 2017 -0800 |
committer | Joel Galenson <jgalenson@google.com> | Wed Nov 29 15:29:49 2017 -0800 |
tree | 058fe687371e5d76ee0b6f51a8f4d0e88106ae5c | |
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