diff options
author | Cosimo Alfarano <cosimo.alfarano@collabora.co.uk> | 2011-01-24 15:00:00 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-02-25 13:16:04 +0000 |
commit | e0bc10ec873f9830d01c70b34095413033d97456 (patch) | |
tree | ab8923adec40dc26584e09f48a34670a39326e52 /README.launchd | |
parent | de99ea078f0b2e31d1db374716bb44899ceb4c55 (diff) |
Make activated processes not inherit oom_adjmaemo-misc
This patch resets the OOM protection level to 0 before exec()uting a new service.
For the session bus it is done in the do_exec() (as child_setup).
For the system bus it is done in the activation helper, being setuid root,
before exec()uting the actual service.
The system bus process' /proc/self/oom_adj is owned by root without write
permission to the world, but the process is running as non-root user. This
makes impossible for dbus-spawn.c's do_exec() properly reset the OOM protection
when running as system bus.
Based on Kimmo Hämäläinen <kimmo.hamalainen@nokia.com> patch, dated 13 Aug 2007.
Bug: https://bugs.freedesktop.org//show_bug.cgi?id=32851
Bug-NB: NB#65462
Diffstat (limited to 'README.launchd')
0 files changed, 0 insertions, 0 deletions