core: make the memory pressure cgroup path writable when ProtectControlGroups=yes
authorLuca Boccassi <bluca@debian.org>
Tue, 14 Mar 2023 20:12:33 +0000 (20:12 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 15 Mar 2023 08:23:17 +0000 (09:23 +0100)
commitd4b6ec980ddd15c9d1a38fd2c5d061c249427f4f
treed1d7138057571003c0d1567c1a89610eb004daf6
parent693c3e1a593318ca996eeda43e7e4f23fc9b9e44
core: make the memory pressure cgroup path writable when ProtectControlGroups=yes

The interface requires services to write to the cgroup file to activate notifications,
but with ProtectControlGroups=yes we make it read-only. Add a writable bind mount.

Follow-up for 6bb0084204bd93122c9f04391b80aea5a8a0ff08
src/core/execute.c
test/units/testsuite-79.sh