mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
Bug 1080165 - Allow setpriority() to fail without crashing in media plugins on Linux. r=kang
This commit is contained in:
parent
632fd003a0
commit
67e50f1aa1
@ -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