[systemd-devel] Is it possible to change the cgroup uid/gid for a systemd slice?
Julio Lajara
julio.lajara at protonmail.com
Wed Aug 30 23:08:29 UTC 2023
Hi all, I have created a systemd slice to constrain CPU/mem resources for a service unit. The service unit runs as root (its a bash script) and it runs a subprocess using systemd-run that it also runs under the same slice but a different unprivileged user. The subprocess needs to read the cgroup memory data directly from the sysfs tree but it cant because its owned by root. Is there way I can change the permissions on it in the slice similar to how cgcreate has the -a option to set the uid/gid for the cgroup?
Thanks,
More information about the systemd-devel
mailing list