Bug 71092

Summary: loginctl kill-user totally borken
Product: systemd Reporter: Marius Vollmer <marius.vollmer>
Component: generalAssignee: systemd-bugs
Status: VERIFIED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: logind: use correct "who" enum values with KillUnit.

Description Marius Vollmer 2013-10-31 14:39:07 UTC
Created attachment 88408 [details]
logind: use correct "who" enum values with KillUnit.

systemd 208-4 in Fedora 20.

loginctl kill-user fails reliably with

    Failed to issue method call: Input/output error

with this in the journal:

    Failed to issue method call: Invalid argument
    Failed to stop unit user-1000.slice: Input/output error

This happens because user_kill in login-user.c passes "process" or "cgroup" to the systemd KillUnit method, while the latter expects "main", "control", or "all".

The attached patch fixes this.  I am not sure whether to use "main" or "control" for KILL_LEADER, though.
Comment 1 Marius Vollmer 2013-11-19 17:45:18 UTC
Any news?
Comment 2 Lennart Poettering 2013-11-20 21:45:31 UTC
Fixed in git (during the libsystemd-bus conversion). 

Thanks!
Comment 3 Marius Vollmer 2013-11-21 07:11:06 UTC
Nice, thanks!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.