Bug 423758 - kio feature request: cgroups support not depending on systemd
Summary: kio feature request: cgroups support not depending on systemd
Status: RESOLVED LATER
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: git master
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-01 18:24 UTC by i.Dark_Templar
Modified: 2021-07-23 12:33 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description i.Dark_Templar 2020-07-01 18:24:56 UTC
SUMMARY
There are Linux systems with cgroups support with no systemd present. It'd be great if cgroup support in kio could be extended to support such systems since it needs rework anyway due to bug 423756 and there's not much reasons to make this feature systemd-dependent. It might be necessary to create or use some helper with setuid or capabilities for cgroup creation and population though.

STEPS TO REPRODUCE
1. Use Linux system with cgroups support but without systemd.

OBSERVED RESULT
Cgroups aren't utilized by kio when no systemd present or running.

EXPECTED RESULT
Cgroups should be utilized if they're present even if no systemd is present and running.
Comment 1 David Edmundson 2021-01-27 13:43:12 UTC
>It might be necessary to create or use some helper with setuid or capabilities for cgroup creation and population though.

Yes, or at least enough to delegate a slice to be managed without root (which is how systemd --user works)

It also requires tracking to perform cleanup. At which point we're talking about rewriting what systemd does. It's not used without reason.