libassistant-v2: Allow syscall for prctl
The latest abseil code adds syscall of prctl() in linux. https://crrev.com/c/4444628 Bug: b:278919526 Test: test manully to run libassistant v2. Change-Id: I5c6822b481d1cf92b2f382501d858b36c50c0f9c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4451110 Commit-Queue: Tao Wu <wutao@chromium.org> Reviewed-by: Matthew Denton <mpdenton@chromium.org> Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#1132890}
This commit is contained in:
@@ -203,10 +203,8 @@ ResultExpr RestrictPrctl() {
|
||||
#endif // BUILDFLAG(IS_ANDROID)
|
||||
},
|
||||
Allow())
|
||||
#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX)
|
||||
.Cases({PR_SET_VMA},
|
||||
If(arg == PR_SET_VMA_ANON_NAME, Allow()).Else(CrashSIGSYSPrctl()))
|
||||
#endif
|
||||
.Default(
|
||||
If(option == PR_SET_PTRACER, Error(EPERM)).Else(CrashSIGSYSPrctl()));
|
||||
}
|
||||
|
Reference in New Issue
Block a user