8000 howto coredump when dropping root privileges by dothebart · Pull Request #6421 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

howto coredump when dropping root privileges #6421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 7, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
howto coredump when dropping root privileges
  • Loading branch information
dothebart committed Sep 7, 2018
commit 3139330312cd4832893b8519fff73cef70aa5401
32 changes: 28 additions & 4 deletions README_maintainers.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,34 @@ In order to use automatic coredump analysis with the unittests you need to confi
Please note that we can't support [Ubuntu Apport](https://wiki.ubuntu.com/Apport).
Please use `apport-unpack` to send us the bare coredumps.

Solaris Coredumps
=================
Solaris configures the system corefile behaviour via the `coreadm` programm.
see https://docs.oracle.com/cd/E19455-01/805-7229/6j6q8svhr/ for more details.
In order to get coredumps from binaries changing their UID the system needs to be told that its allowed to write cores from them.
Default ArangoDB installations will do exactly that, so the following is neccessary to make the system produce coredumps from
production arangodb instances:

Edit `/etc/security/limits.conf` to contain:
```
arangodb - core infinity
```

Edit the systemd unit file `/lib/systemd/system/arangodb3.service` (USE infinity!!!):

```
## setting for core files
# Any dir that is writable by the user running arangod
WorkingDirectory=/var/lib/arangodb3
# core limit - set this to infinity to enable cores
LimitCORE=0
```

enable new systemd settings:
`systemctl daemon-reload && systemctl restart arangodb3.service`

enable suid process dumping:
`echo 1 >/proc/sys/fs/suid_dumpable`

make the above change permanent:

`echo "sys.fs.suid_dumpable = 1 >> /etc/sysctl.d/99-suid-coredump.conf`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LBadTM


Analyzing Coredumps on Linux
============================
Expand Down
0