summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2019-03-25 21:08:30 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2019-03-25 21:08:30 +0000
commitc75833b1d0c0ba1eca1e942a8a11a15fa236a63a (patch)
tree919e41203677c2db431a22edfcb7d29eeeeb9a7f
parentc1ad9fb654c347fb845b1f17151f6e99e05f4e86 (diff)
parentf04b0b427f3fab682d8a6a47673f0d5712d3379f (diff)
Merge "Installd: Fix installd_dexopt_test"
-rw-r--r--cmds/installd/tests/installd_dexopt_test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmds/installd/tests/installd_dexopt_test.cpp b/cmds/installd/tests/installd_dexopt_test.cpp
index 36d5a600b2..fa2b0d9660 100644
--- a/cmds/installd/tests/installd_dexopt_test.cpp
+++ b/cmds/installd/tests/installd_dexopt_test.cpp
@@ -936,8 +936,7 @@ class ProfileTest : public DexoptTest {
protected:
void TransitionToSystemServer() {
ASSERT_TRUE(DropCapabilities(kSystemUid, kSystemGid));
- int32_t res = selinux_android_setcontext(
- kSystemUid, true, se_info_.c_str(), "system_server");
+ int32_t res = selinux_android_setcon("u:r:system_server:s0");
ASSERT_EQ(0, res) << "Failed to setcon " << strerror(errno);
}