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
This commit is contained in:
parent
c1c0de3945
commit
235cf8d729
1 changed files with 2 additions and 0 deletions
|
|
@ -1984,6 +1984,8 @@ TEST(liblog, __security_buffer) {
|
|||
|
||||
EXPECT_EQ(0, setuid(AID_SYSTEM)); // only one that can read security buffer
|
||||
|
||||
uid = getuid();
|
||||
gid = getgid();
|
||||
pid_t pid = getpid();
|
||||
|
||||
ASSERT_TRUE(NULL !=
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue