diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-05-04 03:53:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-05-04 03:53:39 +0000 |
commit | e75387b5443d933b7afda70735259944f64e39d2 (patch) | |
tree | 0c6b680083886ff3f4f14bca34b69526bfd71b28 /sys/kern/vfs_sync.c | |
parent | 078ffdecc4d697879a48c141229ab44dcb1af514 (diff) |
When kern.nosuidcoredump=3, act like =2 but try to dump cores into
the /var/crash/programname/ directory, as root. For instance,
# mkdir /var/crash/bgpd/
# chmod 700 /var/crash/bgpd/ # If you skip this step, you are a moron
# sysctl kern.nosuidcoredump=3
# bgpd
# pkill -ABRT bgpd
# ls /var/crash/bgpd/
14764.core 23207.core 6423.core
Of course, in real life the idea is that you don't kill the daemon but it
crashes and you collect parallel cores. Careful you don't fill your /var.
Further tuneables are being considered.
Sorry to be picking on bgpd for this example. I've watched the "too
difficult to debug privsep code" angst for far too long.
ok guenther
Diffstat (limited to 'sys/kern/vfs_sync.c')
0 files changed, 0 insertions, 0 deletions