diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-10-18 06:08:41 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-10-18 06:08:41 +0000 |
commit | 7d763c491c052bb2d95521e127cce1c9c750129c (patch) | |
tree | 4de412910ce417a3232bc3f3418ab09eb1bcf042 /sys/net | |
parent | e6b9df8f42cba4c337ffef0bcfb8dbdde1933c2b (diff) |
From Keith Bostic, with some minor changes:
The problem reported on BUGTRACK was that ftpd could be convinced to
drop core after it had discarded its special permissions, but while
it still had a copy of the encrypted passwords in its buffers. Change
coredump() to:
+ Don't drop core for any process that was ever setuid/setgid if
it's not running as root.
+ Change errno returns from EFAULT to appropriate values -- this
will be useful for when coredump() becomes a system call and
gcore goes away.
+ Create core dump files mode 600, and don't dump to files that
are owned by anyone else or readable or writable by anyone other
than the owner.
Diffstat (limited to 'sys/net')
0 files changed, 0 insertions, 0 deletions