Jed Davis
c91c0c7b88
Bug 1361238 - Re-allow accept4, used by accessibility. r=gcp
...
MozReview-Commit-ID: 3M3T3bkx4nP
2017-05-01 21:51:11 -06:00
Jed Davis
7889069c1c
Bug 1358647 - Disallow bind/listen/accept for Linux content processes. r=gcp
...
MozReview-Commit-ID: Cz9MKxOJnsS
2017-04-25 19:29:32 -06:00
Mike Hommey
d51030340d
Bug 1357323 - Remove support for gonk in the build system. r=gps
...
Everything depending on the widget being gonk can go away, as well as
everything depending on MOZ_AUDIO_CHANNEL_MANAGER, which was only
defined on gonk builds under b2g/ (which goes away in bug 1357326).
2017-04-18 16:56:09 +09:00
Jed Davis
2ac016ce46
Bug 1355273 - Allow inotify_init alongside inotify_init1. r=Alex_Gaynor,gcp
...
MozReview-Commit-ID: 5hAapLdbmeh
2017-04-14 16:17:39 -06:00
Jed Davis
87cc43a2c5
Bug 1354731 - Quietly fail mknod of character devices in content sandbox. r=gcp
...
MozReview-Commit-ID: 2aehI5V7tQp
2017-04-11 13:22:26 -06:00
Bob Owen
b0665a8030
Bug 1337331 Part 1: Update security/sandbox/chromium/ to commit b169b9a1cc402573843e8c952af14c4e43487e91. r=jld, r=aklotz, r=jimm
...
Also inclues follow-up to remove mitigations that require Windows 10 SDK.
MozReview-Commit-ID: HwqM4noIHmy
2017-03-29 14:23:17 +01:00
Carsten "Tomcat" Book
df6ca84d86
Backed out changeset d9872fdd25f8 (bug 1337331) for causing build problems for others + on request on bob
2017-03-24 11:24:13 +01:00
Bob Owen
28ce5288d7
Bug 1337331 Part 1: Update security/sandbox/chromium/ to commit b169b9a1cc402573843e8c952af14c4e43487e91. r=jld, r=aklotz
2017-03-23 10:29:05 +00:00
Benjamin Bouvier
0a97acd85f
Bug 1342385: Allow mremap on linux32 for wasm; r=jld
...
MozReview-Commit-ID: 82f8ryvd57S
2017-02-24 13:18:57 +01:00
Jed Davis
0147c6d762
Bug 1286865 - Step 4: Report rejected syscall info in Telemetry. r=gcp r=francois
...
MozReview-Commit-ID: 7R755WT1Ftu
2017-02-20 19:55:56 +01:00
Jed Davis
a2bf9371f5
Bug 1286865 - Step 2: Add XPCOM bindings for sandbox syscall reporter. r=gcp r=glandium
...
MozReview-Commit-ID: GERRsOJ7H2w
2017-01-30 18:50:41 -07:00
Jed Davis
4822d9443f
Bug 1286865 - Step 1: Gather syscall info from SIGSYS handlers into the parent process. r=gcp
...
MozReview-Commit-ID: 8GfFo4xso65
2017-01-30 18:49:53 -07:00
Jed Davis
1dc733bc81
Bug 1286865 - Step 0: Turn off crash-on-seccomp-fail by default on non-nightly. r=gcp
...
MozReview-Commit-ID: 1It6HNizbAc
2017-01-27 14:25:50 -07:00
Sylvestre Ledru
3d6a336ac6
Bug 1338086 - Remove useless else blocks in order to reduce complexity in security/sandbox/linux/ r=gcp
...
MozReview-Commit-ID: 5UWtAe6THd6
2017-02-09 10:56:05 +01:00
Sylvestre Ledru
dcdbe09232
Bug 1337358 - Converts for(...; ...; ...) loops to use the new range-based loops in C++11 in security/sandbox/ r=gcp
...
MozReview-Commit-ID: Iwj7i07LkJ0
2017-02-08 11:59:38 +01:00
Jed Davis
cad53993ee
Bug 1335329 - Improve handling of mkdir() on preexisting directories in Linux sandbox file broker. r=gcp
...
If the path given doesn't have write+create permissions in the broker
policy, but does have MAY_ACCESS (i.e., if checking for its existence
with lstat() or access() would be allowed), then check for its existence
and fail with EEXIST the way the the real mkdir() would.
Note that mkdir() fails with EEXIST even the existing file isn't a
directory, including if it's a broken symlink.
MozReview-Commit-ID: 13Cwnq1nRrw
2017-02-02 11:56:21 -07:00
Olli Pettay
d674cff74d
Bug 1335323 - Move vector include to sandbox header to fix bustage. r=bustage-fix a=bustage-fix
2017-01-31 13:06:22 +01:00
Gian-Carlo Pascutto
38513dad59
Bug 1330326 - Make sandboxing policy more configurable via preferences. r=jld
...
MozReview-Commit-ID: 9P0bSLLKRWp
2017-01-26 19:59:50 +01:00
Sebastian Hengst
c3b24cf603
Backed out changeset e87ae43ca443 (bug 1330326)
2017-01-27 20:59:55 +01:00
Gian-Carlo Pascutto
8517f6a37a
Bug 1330326 - Make sandboxing policy more configurable via preferences. r=jld
...
MozReview-Commit-ID: 9P0bSLLKRWp
2017-01-26 19:59:50 +01:00
David Parks
3cc8bac5f7
Bug 1317735 - Consolidate env vars for logging. r=jimm
...
Assigns the preference security.sandbox.logging.enabled and the environment variable MOZ_SANDBOX_LOGGING to control whether or not sandbox violations are logged. The pref defaults to true. On Linux, only the environment variable is considered.
2017-01-23 12:46:49 -08:00
Carsten "Tomcat" Book
9a20c64a17
Merge mozilla-central to autoland
2016-12-07 11:40:35 +01:00
Jed Davis
9522ca2544
Bug 1257361 - Simplify detecting threads that already have seccomp-bpf applied. r=tedd r=gcp
2016-12-06 12:38:22 -10:00
Gian-Carlo Pascutto
1df428a8db
Bug 1309098 - Add ALSA devices to filesystem policy whitelist. r=glandium
...
MozReview-Commit-ID: F2GmQEj9XEN
2016-10-11 16:35:39 +02:00
Jed Davis
9163f4ab3f
Bug 1320085 - Allow the getrlimit-equivalent subset of prlimit64. r=tedd
...
This applies only to content processes, where we already allow getrlimit
(but not setrlimit). The rule added here does not allow using prlimit64
to set any resource limits or interact with any other process.
MozReview-Commit-ID: nMry3t6QPj
2016-11-28 12:05:28 -07:00
Julian Seward
675c0ffe22
Bug 1318012 - SandboxBrokerCommon::SendWithFd sends uninitialised stack-allocated data out of process. [email protected] .
2016-11-21 07:33:19 +01:00
Jed Davis
04f6c9cce4
Bug 1313218 - Preload libmozsandbox.so in child processes on Linux. r=tedd r=billm r=glandium
...
Preloading libmozsandbox allows the symbol interpositions used by
sandboxing to be defined there instead of statically linked into the
executable; this patch also does that.
MozReview-Commit-ID: FL1QWLSKA0S
2016-11-04 18:16:05 -06:00
Phil Ringnalda
0eacb5b6ab
Merge m-c to autoland
2016-11-03 20:02:24 -07:00
Gian-Carlo Pascutto
619aaee21b
Bug 1312678 - Whitelist DRI drivers in the content sandbox, for WebGL. r=jld
...
MozReview-Commit-ID: 82nCmXqnCbp
2016-11-02 20:02:42 +01:00
Jed Davis
76f7028091
Bug 1272062 - Merge security/sandbox/linux/common into its parent directory. r=gcp
...
Now that SandboxInfo is always part of libmozsandbox, instead of being
in different places depending on widget, it doesn't need to be a
separate directory anymore.
Also updates a few comments that referenced it.
2016-10-27 22:06:00 +02:00
Gian-Carlo Pascutto
7123fa2221
Bug 1310116 - Allow waitpid but warn on creating processes in content. r=jld
...
MozReview-Commit-ID: JjNfA6wUe3T
2016-10-25 20:43:42 +02:00
Jed Davis
401fbf4e88
Bug 1268733 - Move Linux sandboxing code back out to libmozsandbox.so. r=gcp r=glandium
2016-10-26 16:57:24 -06:00
Jed Davis
9d51c8a121
Bug 1268733 - Move sandbox interposition shims to their own static library. r=gcp r=glandium
...
This way they'll continue to be at the beginning of the symbol search
path after mozsandbox returns to being a shared library instead of
statically linked into plugin-container.
2016-10-26 16:57:18 -06:00
Jed Davis
03019e9f08
Bug 1268733 - Move sandbox telemetry / crash annotation code from mozsandbox to libxul. r=haik
2016-10-26 16:57:10 -06:00
Andi-Bogdan Postelnicu
85ed12c97e
Bug 1309133 - null terminate pathBuf2 in SandboxBroker::ThreadMain. r=gcp
...
MozReview-Commit-ID: 8iA4Yzwj8nv
2016-10-11 15:42:39 +03:00
Gian-Carlo Pascutto
68c1bd4358
Bug 1308564 - Tie logging to MOZ_SANDBOX_VERBOSE instead of DEBUG. r=jld
...
MozReview-Commit-ID: JHIzIvbjA0Q
2016-10-07 21:33:12 +02:00
Gian-Carlo Pascutto
065ad9e360
Bug 1308851 - Open up devices for NVIDIA proprietary driver in the sandbox. r=jld
...
MozReview-Commit-ID: 5OMRNSPBbe1
2016-10-10 20:51:21 +02:00
Gian-Carlo Pascutto
0fdef5a111
Bug 1308568 - Add missing filesystem calls to Allow in case broker is disabled. r=haik
...
MozReview-Commit-ID: 6AdKbBH0NMh
2016-10-07 22:09:57 +02:00
Gian-Carlo Pascutto
3262985f94
Bug 1289718 - Clean up stat/stat64 wrapper. Deal with non-default TMPDIR. r=jld
...
MozReview-Commit-ID: DW63be9qd3z
2016-10-06 13:25:13 +02:00
Gian-Carlo Pascutto
eb409220a3
Bug 1289718 - Extend sandbox file broker to handle paths, support more syscalls. r=jld,tedd
...
MozReview-Commit-ID: DW415ABoaeN
MozReview-Commit-ID: cXrlXNlEwh
MozReview-Commit-ID: CIX6d7td6Bc
MozReview-Commit-ID: DCQ9DGBBjm4
MozReview-Commit-ID: BOYSSof3t7
MozReview-Commit-ID: LmsTqv0GzC2
MozReview-Commit-ID: HOWR0HEHmMg
MozReview-Commit-ID: 6IzqdrUP7lD
MozReview-Commit-ID: 6r6sqOVekVu
MozReview-Commit-ID: 5FL2WkhIxFx
MozReview-Commit-ID: CcTyHn76p46
MozReview-Commit-ID: F8erB4Tvn2V
MozReview-Commit-ID: D9m10t0Rodc
MozReview-Commit-ID: I1llpEBgDP6
2016-09-27 17:25:06 +02:00
Tom Schuster
1b6fc2bed7
Bug 1302163 - Change code to use SprintfLiteral instead of snprintf. r=ehsan
2016-10-04 17:57:51 +02:00
Jed Davis
5f694806c2
Bug 1303813 - Allow media plugins to call madvise with MADV_FREE. r=gcp
2016-09-26 16:10:00 -04:00
Jed Davis
39b06e90c0
Bug 1304220 - Allow media plugins to use the times(2) syscall. r=gcp
2016-09-26 16:32:00 -04:00
Bob Owen
6dbead27af
Bug 1287426 Part 3: Update security/sandbox/chromium/ to commit 4ec79b7f2379a60cdc15599e93255c0fa417f1ed. r=aklotz, r=jld
...
MozReview-Commit-ID: 14eHMsYZznA
2016-09-06 08:57:21 +01:00
Wes Kocher
49b7e19e6a
Merge m-c to autoland, a=merge
2016-08-30 18:15:33 -07:00
Gian-Carlo Pascutto
fdbf9852e2
Bug 1295190 - Add sys_flock to seccomp whitelist. r=jld
...
MozReview-Commit-ID: 2GxNWzwfh3u
2016-08-22 15:51:05 +02:00
Gian-Carlo Pascutto
b007efd6c8
Bug 1296309 - Return umask (PulseAudio) and wait4 (threads) to the whitelist. r=tedd
...
MozReview-Commit-ID: 72RrNf57FQQ
2016-08-30 16:59:39 +02:00
Kan-Ru Chen
a9b19d0584
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
Gian-Carlo Pascutto
fc612c307f
Bug 1296309 - Remove unused syscalls from the seccomp whitelist. r=tedd
...
MozReview-Commit-ID: BUDRwsuAu0W
2016-08-18 16:56:12 +02:00
Jed Davis
f0bd7062d2
Bug 1290896 - Allow readlink() in desktop Linux content processes. r=gps
...
Making readlink() always fail with EINVAL (the result of applying it
to a non-symlink) worked on B2G, but this is not the case on desktop.
(Note: originally the idea for the B2G file broker was that it would
ignore symlinks and map lstat to stat, so that behavior for readlink
would have been consistent, but as eventually implemented it does do
lstat as actual lstat.)
In particular, this seems to be causing something in the graphics
library stack to change what GL renderer it uses (?), and on some
systems the presence of the readlink->EINVAL rule causes it to load a
version of the llvmpipe software renderer with a crash bug, instead of
(we assume) some other driver that works.
2016-08-08 14:59:19 -07:00