Alex Gaynor
8bf23f6c58
Bug 1380674 - remove the ability to create directories in the content temp directory on macOS; r=haik
...
MozReview-Commit-ID: 8SDcDTqp2F5
2017-10-03 09:49:44 -04:00
Alex Gaynor
b01da78cab
Bug 1403567 - Remove unused access to AppleGraphicsPolicyClient iokit from content process; r=haik
...
MozReview-Commit-ID: 9yTMgo2FNKm
2017-09-26 13:05:18 -04:00
Haik Aftandilian
16e069d5f3
Bug 1403669 - [Mac] Per-user and system extensions dir regexes only work for 1-character subdirectory names. r=Alex_Gaynor
...
MozReview-Commit-ID: L9vNruzMEez
2017-09-27 11:48:39 -07:00
Alex Gaynor
7a780caa29
Bug 1404426 - Simplify the macOS content sandbox policy; r=haik
...
This does two things:
1) Move the level 3 rules to always be applicable, and simplifies level 2 accordingly
2) Consistently uses the raw string literal syntax for regexes
MozReview-Commit-ID: 6iwjOvRVMM7
2017-09-29 13:13:49 -04:00
Haik Aftandilian
c536b6877e
Bug 1401756 - [Mac] Remove unneeded mach-lookups from plugin sandbox rules. r=Alex_Gaynor
...
MozReview-Commit-ID: JsgBzNJC4zF
2017-09-20 14:05:27 -07:00
Alex Gaynor
7ad19ff866
Bug 1403210 - Remove unused access to AppleSNBFBUserClient iokit from content process; r=haik
...
MozReview-Commit-ID: K4Z48UFfq2w
2017-09-26 11:32:01 -04:00
Haik Aftandilian
787cbf7b53
Bug 1392988 - Firefox 55.02 on macOS High Sierra cannot play AES encrypted video. r=Alex_Gaynor
...
Adds access to video encoding/decoding services when running on macOS 10.13 High Sierra.
MozReview-Commit-ID: 6h4dZ6gkFtp
2017-08-28 19:06:07 -07:00
Haik Aftandilian
96c4d9c39d
Bug 1382260 - Patch 2 - [Mac] Allow reading of font files from the content sandbox. r=Alex_Gaynor
...
MozReview-Commit-ID: 9W5aqQweFmd
2017-08-18 16:12:07 -07:00
Haik Aftandilian
8764425ea2
Bug 1388580 - [Mac] Remove miscellaneous iokit open permissions r=Alex_Gaynor
...
MozReview-Commit-ID: 3StDmeSwZUG
2017-08-08 15:57:21 -07:00
Alex Gaynor
c5f9a4451e
Bug 1389535 - remove access to com.apple.coreservices.launchservicesd from content processes; r=haik
...
MozReview-Commit-ID: 8uOZmYGxJDK
2017-08-09 11:29:53 -04:00
Alex Gaynor
b2d0ed3940
Bug 1388454 - remove access to the com.apple.pasteboard.1 mach service from content processes; r=haik
...
MozReview-Commit-ID: EXb6UDYohZT
2017-08-08 13:51:48 -04:00
Alex Gaynor
f8fc5cb512
Bug 1388360 - remove access to the com.apple.iconservices mach service from content processes; r=haik
...
MozReview-Commit-ID: D20alO2PKR0
2017-08-08 10:15:16 -04:00
Alex Gaynor
45f87b6810
Bug 1386363 - remove access to the com.apple.SystemConfiguration.configd mach service from content processes; r=haik
...
MozReview-Commit-ID: 3hFEx67JkdO
2017-08-07 10:09:32 -04:00
Haik Aftandilian
61d977a37e
Bug 1388172 - [Mac] Remove access to "com.apple.window_proxies" from the content sandbox. r=Alex_Gaynor
...
MozReview-Commit-ID: 2EtLWOvPtyK
2017-08-07 14:44:33 -07:00
Alex Gaynor
89d9dd4db9
Bug 1387570 - remove access to the com.apple.cache_delete mach service from content processes; r=haik
...
MozReview-Commit-ID: LoB1rx5DoV5
2017-08-07 10:11:37 -04:00
Haik Aftandilian
7e501c1933
Bug 1322024 - [Mac] Remove com.apple.windowserver.active access from the content sandbox. r=Alex_Gaynor
...
MozReview-Commit-ID: CY99fseWrQX
2017-07-24 15:22:58 -07:00
Alex Gaynor
6918a42ee7
Bug 1387233 - restrict access to ipc-posix-shm APIs in the content process; r=haik
...
This removes /tmp/com.apple.csseed access entirely, ipc-posix-shm-read-metadata
from CFPBS:, and ipc-posix-shm-write-{create,unlink} from AudioIO and CFPBS:.
MozReview-Commit-ID: Eahx6guqGos
2017-08-03 17:03:47 -04:00
Alex Gaynor
054b555ce3
Bug 1385332 - remove access to the com.apple.pluginkit.pkd mach service from the content process; r=haik
...
MozReview-Commit-ID: 2KYaScrgnll
2017-08-03 10:20:07 -04:00
Haik Aftandilian
a935c59fe1
Bug 1386075 - [Mac] Remove (iokit-user-client-class "RootDomainUserClient"). r=Alex_Gaynor
...
MozReview-Commit-ID: 2bM5KVIbdru
2017-08-03 13:29:55 -07:00
Alex Gaynor
e281fa89b7
Bug 1385096 - remove access to the com.apple.bird mach service from the content process; r=haik
...
MozReview-Commit-ID: FqKZVL16zz9
2017-08-03 10:14:33 -04:00
Haik Aftandilian
c4c0b3998b
Bug 1386161 - [Mac] Remove IOAudioControl Rules. r=Alex_Gaynor
...
MozReview-Commit-ID: 3cLUCJDoWlh
2017-07-30 22:26:06 -07:00
Alex Gaynor
fa858af2f4
Bug 1386308 - stop trying to change the display sleep settings from the content process; r=haik
...
Before this change we were trying to change the settings from both the content
and parent processes, so this doesn't change any functionality. This allows to
remove access to the com.apple.PowerManagement.control mach service from the
content process.
MozReview-Commit-ID: 3DOhqG5U6oz
2017-08-01 12:22:42 -04:00
Alex Gaynor
af377e428b
Bug 1386291 - remove access to the com.apple.DesktopServicesHelper mach service in content processes; r=haik
...
MozReview-Commit-ID: Bk58lE5p6fi
2017-08-01 11:12:44 -04:00
Alex Gaynor
e06437114d
Bug 1384941 - removed access to mach services which are used for cameras in the content process; r=haik
...
MozReview-Commit-ID: Ir6KgLM34bu
2017-07-25 11:51:03 -04:00
Haik Aftandilian
f6fe9d7063
Bug 1384209 - [Mac] Remove com.apple.coreservices.appleevents from the content process sandbox. r=Alex_Gaynor
...
MozReview-Commit-ID: 37zX5WZiF4P
2017-07-24 15:53:18 -07:00
Alex Gaynor
6548da7018
Bug 1264811 - Use a const reference and a default constructor to simplify the macOS sandbox code; r=haik
...
MozReview-Commit-ID: Dtspj7fL9t7
2017-07-28 15:00:22 -04:00
Alex Gaynor
05c5d9b9bf
Bug 1385028 - simplify handling of macOS minor version in the sandbox policy; r=haik
...
MozReview-Commit-ID: BDD7WzTqHC6
2017-07-27 13:58:28 -04:00
Ryan VanderMeulen
5367c6946d
Backed out changeset 4d7f80401751 (bug 1385028) for bustage.
2017-07-27 20:10:23 -04:00
Alex Gaynor
45ef89cd36
Bug 1385028 - simplify handling of macOS minor version in the sandbox policy; r=haik
...
MozReview-Commit-ID: BDD7WzTqHC6
2017-07-27 13:58:28 -04:00
Alex Gaynor
b8b4ef3512
Bug 1384677 - remove com.apple.cookied access from content processes; r=haik
...
MozReview-Commit-ID: 5mI4VXf7J8Q
2017-07-25 11:03:43 -04:00
Alex Gaynor
ba8ecfb840
Bug 1383818 - Disallow content processes for using the com.apple.ocspd mach service; r=haik
...
It is not used, so this is an attack surface reduction.
MozReview-Commit-ID: mrW9hi0SAh
2017-07-24 09:50:32 -04:00
Haik Aftandilian
419dd8f324
Bug 1380132 - Part 3 - Use env variable MOZ_DEVELOPER_OBJ_DIR to whitelist object dir in content sandbox. r=Alex_Gaynor
...
On developer builds, use $MOZ_DEVELOPER_OBJ_DIR to whitelist the object dir in the content sandbox so that symlinks to the object dir from .app/ files can be loaded.
MozReview-Commit-ID: J4YdpxgbD8i
2017-07-14 16:32:53 -07:00
Alex Gaynor
6a013821cd
Bug 1379803 - on macOS, only allow the creation of regular files and directories in writable directories; r=haik
...
This specifically disallows the creation of ttys and symlinks. Writable
directories are needed for plugins, which lazily create the plugintmp directory.
If/when the plugin API surface is reduced we can restrict down to just regular
files.
MozReview-Commit-ID: Ec6qeaiHSsB
2017-07-11 09:51:04 -04:00
Alex Gaynor
c87a6ccfb6
Bug 1379182 - Remove some unnecessary file-write permissions types from the content process on macOS; r=haik
...
On macOS, the file-write* permission type contains numerous sub-permissions (see
bug for full listing). Restrict the ones we allow to only the two we need:
file-write-create and file-write-data. This primarily reduces kernel attack
surface, I'm not aware of any bad things that could be done directly with the
removed permissions.
MozReview-Commit-ID: 3VvjFesy2qx
2017-07-07 11:05:01 -04:00
Wes Kocher
4a3051693d
Merge m-c to inbound, a=merge
...
MozReview-Commit-ID: IVwrN2VivZT
2017-07-07 17:30:32 -07:00
Alex Gaynor
87230fdfb3
Bug 1376976 - Restrict sysctl access in the content process to a whitelist of sysctl names. r=jld, r=haik
...
MozReview-Commit-ID: 14yoiP1gskM
2017-06-29 13:55:15 -07:00
Haik Aftandilian
7aba811ad1
Bug 1376163 - [10.13] No audio playback on YouTube, no audio/video on Netflix (macOS High Sierra 10.13 Beta). r=Alex_Gaynor
...
Allow access to the "com.apple.audio.AudioComponentRegistrar" API on 10.13+ systems.
MozReview-Commit-ID: 8gWXvuXTNKi
2017-07-06 14:09:11 -07:00
Alex Gaynor
23ea7e6828
Bug 1377164 - Improve the readability of the macOS plugin sandbox policy; r=haik
...
MozReview-Commit-ID: 9R8qT98ESQJ
2017-06-29 10:53:04 -07:00
Alex Gaynor
0e8abae43e
Bug 1357758 - Replace the file-read blacklist in the macOS sandbox policy with a whitelist of the allowed paths; r=haik
...
This makes the policy easier to audit, harder to regress, and easier to further prune the content processes's permissions.
MozReview-Commit-ID: 6VqEoGsWSGH
2017-04-18 15:57:54 -04:00
Alex Gaynor
51673a870d
Bug 1374557 - Part 1 - Add the ability to specify a list of paths to whitelist read access to in the macOS content sandbox; r=haik
...
MozReview-Commit-ID: HXBkyR7Tts2
2017-06-21 10:19:28 -04:00
Alex Gaynor
47958cac74
Bug 1374660 - Removed redundant declarations from macOS content sandbox policy; r=haik
...
MozReview-Commit-ID: Gw6AnH8r9sL
2017-06-20 10:27:18 -04:00
Alex Gaynor
6dc540d934
Bug 1370540 - Extend the level 3 content sandbox filesystem read blacklist to include /Network and /Users; r=haik
...
MozReview-Commit-ID: 6RfS5aYRghK
2017-06-06 10:48:06 -04:00
Alex Gaynor
e4c840373e
Bug 1363179 - do not allow content processes to read from /Volumes on macOS r=haik
...
MozReview-Commit-ID: 8osJVQD3myh
2017-05-12 16:18:57 -04:00
Alex Gaynor
3de18de2e2
Bug 1361733 - In debug builds, do not allow content sandbox to write to all of /private/var r=haik
...
This permission was needed for the memory bloat logging, which is used for
leaktest, including logging intentionally crashing processes. Now we restrict
ourselves to only allowing writes to the location needed for this logging,
rather than all of /private/var.
MozReview-Commit-ID: 5AbJEZlDHNV
2017-05-02 11:07:10 -04:00
Haik Aftandilian
332dac5789
Bug 1361304 - Remove /private/var read access from Mac level 3 content sandbox; r=Alex_Gaynor
...
Removes read access to /private/var and its subdirectories from
the content process under the level 3 Mac sandbox. Still permits
reading of file metadata within the majority of /private/var.
Adds tests to validate the level 3 Mac content sandbox prevents
reading from /private.
MozReview-Commit-ID: FO5dz0F7dl4
2017-05-05 10:48:52 -07:00
Haik Aftandilian
5688b11abe
Bug 1360356 - [Mac] Remove "/Library/Caches/TemporaryItems" rule from level 3 Content Sandbox; r=Alex_Gaynor
...
Remove reading of "~/Library/Caches/TemporaryItems" from level 3 and update
sandboxing filesystem test to check ~/Library/Caches/TemporaryItems readability.
MozReview-Commit-ID: 6EMzH7brSnp
2017-04-28 11:48:43 -07:00
Alex Gaynor
277ae9d857
Bug 1354678 - Switch our sandbox policies to use C++ raw strings and put them in a new header file r=haik
...
r=haik
MozReview-Commit-ID: Fr5liCjcJtg
2017-04-14 13:12:09 -04:00
Alex Gaynor
2267131276
Bug 1355083 - Switch from using a #define to alter a sandbox policy to a normal param r=haik
...
r=haik
MozReview-Commit-ID: KqmRra6NqPa
2017-04-10 09:53:47 -04:00
Haik Aftandilian
10df81a1da
Bug 1354674 - Introduce, but don't enable, a level 3 Mac content sandbox with home directory read access disabled r=Alex_Gaynor
...
MozReview-Commit-ID: 2LThF6XTsoo
2017-04-07 18:14:01 -07:00
Alex Gaynor
b0e3cab391
Bug 1295700 - Don't allow content processes to access the weave director on macOS r=haik
...
These directories contain sensitive content, and access is not necessary now that we have file content processes.
r=haik
MozReview-Commit-ID: FiRJkMnlYUx
2017-04-06 15:20:23 -04:00