mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1080165 - Allow setpriority() to fail without crashing in media plugins on Linux. r=kang
This commit is contained in:
parent
319867e6f6
commit
80fd7676d7
@ -381,6 +381,9 @@ void SandboxFilterImplGMP::Build() {
|
||||
// NSPR can call this when creating a thread, but it will accept a
|
||||
// polite "no".
|
||||
Deny(EACCES, SYSCALL(getpriority));
|
||||
// But if thread creation races with sandbox startup, that call
|
||||
// could succeed, and then we get one of these:
|
||||
Deny(EACCES, SYSCALL(setpriority));
|
||||
|
||||
// Stack bounds are obtained via pthread_getattr_np, which calls
|
||||
// this but doesn't actually need it:
|
||||
|
Loading…
Reference in New Issue
Block a user