diff options
author | Jann Horn <[email protected]> | 2015-09-09 15:38:30 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2015-09-10 13:29:01 -0700 |
commit | 40f705a736eac10e7dca7ab5dd5ed675a6df031d (patch) | |
tree | 80ad7ecf85ece7a46133fd23b150d05a4074da5a /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | fbb1816942c04429e85dbf4c1a080accc534299e (diff) |
fs: Don't dump core if the corefile would become world-readable.
On a filesystem like vfat, all files are created with the same owner
and mode independent of who created the file. When a vfat filesystem
is mounted with root as owner of all files and read access for everyone,
root's processes left world-readable coredumps on it (but other
users' processes only left empty corefiles when given write access
because of the uid mismatch).
Given that the old behavior was inconsistent and insecure, I don't see
a problem with changing it. Now, all processes refuse to dump core unless
the resulting corefile will only be readable by their owner.
Signed-off-by: Jann Horn <[email protected]>
Acked-by: Kees Cook <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions