зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1640612 - Allow FIONREAD ioctl for socket process, r=jld
Differential Revision: https://phabricator.services.mozilla.com/D79071
This commit is contained in:
Родитель
c49db2fc38
Коммит
aba86f73b8
|
@ -1596,6 +1596,8 @@ class SocketProcessSandboxPolicy final : public SandboxPolicyCommon {
|
|||
return If(request == FIOCLEX, Allow())
|
||||
// Rust's stdlib also uses FIONBIO instead of equivalent fcntls.
|
||||
.ElseIf(request == FIONBIO, Allow())
|
||||
// This is used by PR_Available in nsSocketInputStream::Available.
|
||||
.ElseIf(request == FIONREAD, Allow())
|
||||
// ffmpeg, and anything else that calls isatty(), will be told
|
||||
// that nothing is a typewriter:
|
||||
.ElseIf(request == TCGETS, Error(ENOTTY))
|
||||
|
|
Загрузка…
Ссылка в новой задаче