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:
Jed Davis 2017-10-13 14:32:43 -06:00
parent bccaf86555
commit b61d9d2cbe

View File

@ -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())