summaryrefslogtreecommitdiffstats
path: root/init/util.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2017-05-08 13:38:15 -0700
committerTom Cherry <tomcherry@google.com>2017-05-09 02:25:32 +0000
commit482f36cf74c0461bbad4a33df27d1b8e72ccc2d2 (patch)
treed0ade431b56e65db325e9b777d10fa7810185b59 /init/util.cpp
parentcc22a8e5a25e63fa61e1236ef4df28bfea05be35 (diff)
downloadsystem_core-482f36cf74c0461bbad4a33df27d1b8e72ccc2d2.tar.gz
system_core-482f36cf74c0461bbad4a33df27d1b8e72ccc2d2.tar.bz2
system_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/util.cpp')
-rw-r--r--init/util.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/init/util.cpp b/init/util.cpp
index 5afe28554..75f81b946 100644
--- a/init/util.cpp
+++ b/init/util.cpp
@@ -266,11 +266,6 @@ int make_dir(const char* path, mode_t mode, selabel_handle* sehandle) {
return rc;
}
-int restorecon(const char* pathname, int flags)
-{
- return selinux_android_restorecon(pathname, flags);
-}
-
/*
* Writes hex_len hex characters (1/2 byte) to hex from bytes.
*/