core/cgroup: allow setting oomd xattrs from user manager
authorNick Rosbrook <nick.rosbrook@canonical.com>
Tue, 14 Jun 2022 19:25:50 +0000 (15:25 -0400)
committerNick Rosbrook <nick.rosbrook@canonical.com>
Fri, 26 Aug 2022 16:40:58 +0000 (12:40 -0400)
commitb1cd8ed42094f64a201c225be8d2c648f9067444
tree5bbd869a94b680d894084e7a5beb05fe8fa4ef96
parent31a07872fa3658971c92751819f2ec17199e15c6
core/cgroup: allow setting oomd xattrs from user manager

The extended attributes 'user.oomd_avoid' and 'user.oomd_omit' are used
to store the setting of the ManagedOOMPrefernce property. Since these
are user extended attributes, the access permissions are defined by the
file permissions, and there is no need to guard this from user managers.
src/core/cgroup.c