mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 04:05:32 +00:00
Bug 1408498 - Allow FIONREAD in sandboxed content processes, for libgio. r=gcp
MozReview-Commit-ID: 23mO3vCb7Gu --HG-- extra : rebase_source : b0183cb4d8d6a5e6ab03e9d4e1db1a3bb76a3569
This commit is contained in:
parent
bccaf86555
commit
b61d9d2cbe
@ -734,6 +734,9 @@ public:
|
||||
// ffmpeg, and anything else that calls isatty(), will be told
|
||||
// that nothing is a typewriter:
|
||||
.ElseIf(request == TCGETS, Error(ENOTTY))
|
||||
// Bug 1408498: libgio uses FIONREAD on inotify fds.
|
||||
// (We should stop using inotify: bug 1408497.)
|
||||
.ElseIf(request == FIONREAD, Allow())
|
||||
// Allow anything that isn't a tty ioctl, for now; bug 1302711
|
||||
// will cover changing this to a default-deny policy.
|
||||
.ElseIf(shifted_type != kTtyIoctls, Allow())
|
||||
|
Loading…
Reference in New Issue
Block a user