Bug 423758

Summary: kio feature request: cgroups support not depending on systemd
Product: [Frameworks and Libraries] frameworks-kio Reporter: i.Dark_Templar <idarktemplar>
Component: generalAssignee: KIO Bugs <kio-bugs-null>
Status: RESOLVED LATER    
Severity: wishlist CC: kde, kdelibs-bugs-null, nate
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.