diff options
| author | Tom Cherry <tomcherry@google.com> | 2017-05-08 13:38:15 -0700 |
|---|---|---|
| committer | Tom Cherry <tomcherry@google.com> | 2017-05-08 16:41:13 -0700 |
| commit | 1e7da2a8f9b78ece69e922df30f9f2d5de009c1c (patch) | |
| tree | 0003d536142c37bf9de379bb38ed9fd088af7113 /init/builtins.cpp | |
| parent | ebade3907fa442f8bcd13ca1eb01f3d75ab55204 (diff) | |
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
Change-Id: I7e209ece6898f9a0d5eb9e5d5d8155c2f1ba9faf
Diffstat (limited to 'init/builtins.cpp')
| -rw-r--r-- | init/builtins.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/builtins.cpp b/init/builtins.cpp index 27b72f96cc..1eacb363e9 100644 --- a/init/builtins.cpp +++ b/init/builtins.cpp @@ -762,7 +762,7 @@ static int do_restorecon(const std::vector<std::string>& args) { } } else { in_flags = false; - if (restorecon(args[i].c_str(), flag) < 0) { + if (selinux_android_restorecon(args[i].c_str(), flag) < 0) { ret = -errno; } } |
