commit | 235cf8d729deabcee92c045457a197f99bb9ee91 | [log] [tgz] |
---|---|---|
author | Rubin Xu <rubinxu@google.com> | Tue Apr 04 20:16:25 2017 +0100 |
committer | Rubin Xu <rubinxu@google.com> | Wed Apr 05 11:27:48 2017 +0100 |
tree | 5d029aa3f725f4f9bda52ddbc04496b88dd37603 | |
parent | c1c0de3945f5f5dee8477a1101e158449b267efe [diff] |
Fix liblog#__security failure Update pid and gid value after calling setuid() Bug: 36480230 Test: cts-tradefed run cts -m CtsLiblogTestCases -t liblog#__security_buffer Change-Id: I707f7c724d64236ec17f2d978c85883a7b4f180f Merges-In: I707f7c724d64236ec17f2d978c85883a7b4f180f
diff --git a/liblog/tests/liblog_test.cpp b/liblog/tests/liblog_test.cpp index 0538c4c..70b8a28 100644 --- a/liblog/tests/liblog_test.cpp +++ b/liblog/tests/liblog_test.cpp
@@ -1984,6 +1984,8 @@ EXPECT_EQ(0, setuid(AID_SYSTEM)); // only one that can read security buffer + uid = getuid(); + gid = getgid(); pid_t pid = getpid(); ASSERT_TRUE(NULL !=