fune/security/sandbox/common
Jed Davis 13c96aa81a Bug 1848615 - Adjust Linux content sandbox policy so that ICU can get the canonical time zone. r=gcp
ICU version 73 (bug 1824744) has [a change to call realpath][icu-2323]
rather than just readlink on `/etc/localtime`, meaning that it needs to
be able to readlink every directory involved in path resolution.  In
particular, for a symlink into `/usr/share/zoneinfo`, this includes
`/usr`, which is blocked by the content sandbox policy.

Currently, the file broker requires `MAY_READ` permission to allow
readlink, so we grant that on `/usr` and `/nix` (there will be a
similar issue with symlinks to `/nix/store/...`).  Note that this
applies only to those directories themselves, not files within them.

This also means that the process can open those directories for reading
(i.e., readdir), but that should be relatively low-impact compared to
the information that's already exposed.

[icu-2323]: https://github.com/unicode-org/icu/pull/2323

Differential Revision: https://phabricator.services.mozilla.com/D186584
2023-08-29 18:33:30 +00:00
..
test Bug 1848615 - Adjust Linux content sandbox policy so that ICU can get the canonical time zone. r=gcp 2023-08-29 18:33:30 +00:00
components.conf
moz.build
mozISandboxSettings.idl
SandboxSettings.cpp Bug 1829652 - Remove Linux content sandbox level 1. r=gcp 2023-05-08 18:51:47 +00:00
SandboxSettings.h