Loading
Bug 1302711 - Add Linux content sandbox level 6, for `ioctl` lockdown. r=gcp
The sandbox already limits `ioctl` attack surface by restricting what files can be opened (you can't call a device's `ioctl` handler if you can't get a fd for that device), but it's always good to have defense in depth, especially when it can be implemented this simply. The new policy is default-deny, allowing only a couple ioctls that are really fcntls; others may be added as needed. The old, default-allow policy (which blocked only tty ioctls) is still available by lowering the pref `security.sandbox.content.level` to 5, and for now that is also the case in safe mode. (The safe mode sandbox lowering may be removed in the future once this is better tested.) Differential Revision: https://phabricator.services.mozilla.com/D249017