Merge "Allow another prctl call." am: 8711f72835

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1678266

Change-Id: Id93a5f166648f861fb1331c755a72bc9dc8ff2b0
This commit is contained in:
Christopher Ferris 2021-04-20 16:52:14 +00:00 committed by Automerger Merge Worker
commit 8eb74b032e
3 changed files with 7 additions and 2 deletions

View file

@ -274,7 +274,7 @@ void CrasherTest::AssertDeath(int signo) {
}
if (signo == 0) {
ASSERT_TRUE(WIFEXITED(status));
ASSERT_TRUE(WIFEXITED(status)) << "Terminated due to unexpected signal " << WTERMSIG(status);
ASSERT_EQ(0, WEXITSTATUS(signo));
} else {
ASSERT_FALSE(WIFEXITED(status));

View file

@ -24,7 +24,7 @@ tgkill: 1
rt_sigprocmask: 1
rt_sigaction: 1
rt_tgsigqueueinfo: 1
prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == 0x53564d41
prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == 0x53564d41 || arg0 == PR_PAC_RESET_KEYS
madvise: 1
mprotect: arg2 in 0x1|0x2
munmap: 1

View file

@ -34,7 +34,12 @@ rt_sigaction: 1
rt_tgsigqueueinfo: 1
#define PR_SET_VMA 0x53564d41
#if defined(__aarch64__)
// PR_PAC_RESET_KEYS happens on aarch64 in pthread_create path.
prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == PR_SET_VMA || arg0 == PR_PAC_RESET_KEYS
#else
prctl: arg0 == PR_GET_NO_NEW_PRIVS || arg0 == PR_SET_VMA
#endif
#if 0
libminijail on vendor partitions older than P does not have constants from <sys/mman.h>.