diff options
| author | 2019-03-25 14:22:50 -0700 | |
|---|---|---|
| committer | 2019-03-25 14:22:50 -0700 | |
| commit | 203201be03e8fe10eadc0237828c83fc80692b74 (patch) | |
| tree | 6c572169e53299cb9ed60f99096755832078d242 | |
| parent | fcaf4ba4c78e0cf1b85041201bf55eb8d676bd73 (diff) | |
| parent | c75833b1d0c0ba1eca1e942a8a11a15fa236a63a (diff) | |
Merge "Installd: Fix installd_dexopt_test"
am: c75833b1d0
Change-Id: I90ccd16474d4e4d6bc7a93dcba16c6b83a803be4
| -rw-r--r-- | cmds/installd/tests/installd_dexopt_test.cpp | 3 |
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); } |