diff options
author | Tom Cherry <tomcherry@google.com> | 2017-05-08 13:38:15 -0700 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2017-05-09 02:25:32 +0000 |
commit | 482f36cf74c0461bbad4a33df27d1b8e72ccc2d2 (patch) | |
tree | d0ade431b56e65db325e9b777d10fa7810185b59 /init/property_service.cpp | |
parent | cc22a8e5a25e63fa61e1236ef4df28bfea05be35 (diff) | |
download | core-482f36cf74c0461bbad4a33df27d1b8e72ccc2d2.tar.gz core-482f36cf74c0461bbad4a33df27d1b8e72ccc2d2.tar.bz2 core-482f36cf74c0461bbad4a33df27d1b8e72ccc2d2.zip |
init: remove restorecon() from util.cpp
restorecon() has become nothing more than a small wrapper around
selinux_android_restore(). This itself isn't super problematic, but
it is an obstacle for compiling util.cpp on the host as that function
is not available on the host.
Bug: 36970783
Test: Boot bullhead
Merged-In: I7e209ece6898f9a0d5eb9e5d5d8155c2f1ba9faf
Change-Id: I7e209ece6898f9a0d5eb9e5d5d8155c2f1ba9faf
Diffstat (limited to 'init/property_service.cpp')
-rw-r--r-- | init/property_service.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/property_service.cpp b/init/property_service.cpp index 77227505b..18e47e3df 100644 --- a/init/property_service.cpp +++ b/init/property_service.cpp @@ -177,7 +177,7 @@ uint32_t property_set(const std::string& name, const std::string& value) { } if (name == "selinux.restorecon_recursive" && valuelen > 0) { - if (restorecon(value.c_str(), SELINUX_ANDROID_RESTORECON_RECURSE) != 0) { + if (selinux_android_restorecon(value.c_str(), SELINUX_ANDROID_RESTORECON_RECURSE) != 0) { LOG(ERROR) << "Failed to restorecon_recursive " << value; } } |