Skip to content

_dbus_reset_oom_score_adj: ignore EACCES

Michael Gilbert requested to merge floppym/dbus:bug836560 into master
When we try to open /proc/self/oom_score_adj, EACCES may be returned in
a couple of scenarios:

1. The process is running with elevated Linux capabilities, but not as
   root. In this case, files under /proc/self/ will be owned by
   root:root, and we cannot open them for writing.

2. The process is running in a sandboxed environment, where attempts to
   open /proc/self/* for writing are denied by the sandbox regardless of
   filesystem permissions.

Signed-off-by: Mike Gilbert <>

Merge request reports