Bug 71092 - loginctl kill-user totally borken
Summary: loginctl kill-user totally borken
Status: VERIFIED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-31 14:39 UTC by Marius Vollmer
Modified: 2013-11-21 07:11 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
logind: use correct "who" enum values with KillUnit. (1.24 KB, text/plain)
2013-10-31 14:39 UTC, Marius Vollmer
Details

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.